1 module graphql.validation.exception; 2 3 @safe: 4 5 class ValidationException : Exception { 6 this(string msg, string f, size_t l) { 7 super(msg, f, l); 8 } 9 } 10 11 class FragmentNotFoundException : ValidationException { 12 this(string msg, string f, size_t l) { 13 super(msg, f, l); 14 } 15 } 16 17 class FragmentCycleException : ValidationException { 18 this(string msg, string f, size_t l) { 19 super(msg, f, l); 20 } 21 } 22 23 class FragmentNameAlreadyInUseException : ValidationException { 24 this(string msg, string f, size_t l) { 25 super(msg, f, l); 26 } 27 } 28 29 class UnusedFragmentsException : ValidationException { 30 this(string msg, string f, size_t l) { 31 super(msg, f, l); 32 } 33 } 34 35 class LoneAnonymousOperationException : ValidationException { 36 this(string msg, string f, size_t l) { 37 super(msg, f, l); 38 } 39 } 40 41 class NonUniqueOperationNameException : ValidationException { 42 this(string msg, string f, size_t l) { 43 super(msg, f, l); 44 } 45 } 46 47 class NoTypeSystemDefinitionException : ValidationException { 48 this(string msg, string f, size_t l) { 49 super(msg, f, l); 50 } 51 } 52 53 class ArgumentsNotUniqueException : ValidationException { 54 this(string msg, string f, size_t l) { 55 super(msg, f, l); 56 } 57 } 58 59 class VariablesNotUniqueException : ValidationException { 60 this(string msg, string f, size_t l) { 61 super(msg, f, l); 62 } 63 } 64 65 class VariablesUseException : ValidationException { 66 this(string msg, string f, size_t l) { 67 super(msg, f, l); 68 } 69 } 70 71 class SingleRootField : ValidationException { 72 this(string msg, string f, size_t l) { 73 super(msg, f, l); 74 } 75 } 76 77 class FieldDoesNotExist : ValidationException { 78 this(string msg, string f, size_t l) { 79 super(msg, f, l); 80 } 81 } 82 83 class UnknownTypeName : ValidationException { 84 this(string msg, string f, size_t l) { 85 super(msg, f, l); 86 } 87 } 88 89 class FragmentNotOnCompositeType : ValidationException { 90 this(string msg, string f, size_t l) { 91 super(msg, f, l); 92 } 93 } 94 95 class LeafIsNotAScalar : ValidationException { 96 this(string msg, string f, size_t l) { 97 super(msg, f, l); 98 } 99 } 100 101 class ContradictingDirectives : ValidationException { 102 this(string msg, string f, size_t l) { 103 super(msg, f, l); 104 } 105 } 106 107 class DirectiveNotUnique : ValidationException { 108 this(string msg, string f, size_t l) { 109 super(msg, f, l); 110 } 111 } 112 113 class VariableInputTypeMismatch : ValidationException { 114 this(string msg, string f, size_t l) { 115 super(msg, f, l); 116 } 117 } 118 119 class ArgumentDoesNotExist : ValidationException { 120 this(string msg, string f, size_t l) { 121 super(msg, f, l); 122 } 123 } 124