Error codes​

Error codes and names as specified in edb/api/errors.txt:

  1. #
  2. # This source file is part of the EdgeDB open source project.
  3. #
  4. # Copyright 2016-present MagicStack Inc. and the EdgeDB authors.
  5. #
  6. # Licensed under the Apache License, Version 2.0 (the "License");
  7. # you may not use this file except in compliance with the License.
  8. # You may obtain a copy of the License at
  9. #
  10. # http://www.apache.org/licenses/LICENSE-2.0
  11. #
  12. # Unless required by applicable law or agreed to in writing, software
  13. # distributed under the License is distributed on an "AS IS" BASIS,
  14. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. # See the License for the specific language governing permissions and
  16. # limitations under the License.
  17. #
  18. ####
  19. 0x_01_00_00_00 InternalServerError
  20. ####
  21. 0x_02_00_00_00 UnsupportedFeatureError
  22. ####
  23. 0x_03_00_00_00 ProtocolError
  24. 0x_03_01_00_00 BinaryProtocolError
  25. 0x_03_01_00_01 UnsupportedProtocolVersionError
  26. 0x_03_01_00_02 TypeSpecNotFoundError
  27. 0x_03_01_00_03 UnexpectedMessageError
  28. 0x_03_02_00_00 InputDataError
  29. 0x_03_03_00_00 ResultCardinalityMismatchError
  30. 0x_03_04_00_00 CapabilityError
  31. 0x_03_04_01_00 UnsupportedCapabilityError
  32. 0x_03_04_02_00 DisabledCapabilityError
  33. ####
  34. 0x_04_00_00_00 QueryError
  35. 0x_04_01_00_00 InvalidSyntaxError
  36. 0x_04_01_01_00 EdgeQLSyntaxError
  37. 0x_04_01_02_00 SchemaSyntaxError
  38. 0x_04_01_03_00 GraphQLSyntaxError
  39. 0x_04_02_00_00 InvalidTypeError
  40. 0x_04_02_01_00 InvalidTargetError
  41. 0x_04_02_01_01 InvalidLinkTargetError
  42. 0x_04_02_01_02 InvalidPropertyTargetError
  43. 0x_04_03_00_00 InvalidReferenceError
  44. 0x_04_03_00_01 UnknownModuleError
  45. 0x_04_03_00_02 UnknownLinkError
  46. 0x_04_03_00_03 UnknownPropertyError
  47. 0x_04_03_00_04 UnknownUserError
  48. 0x_04_03_00_05 UnknownDatabaseError
  49. 0x_04_03_00_06 UnknownParameterError
  50. 0x_04_04_00_00 SchemaError
  51. 0x_04_05_00_00 SchemaDefinitionError
  52. 0x_04_05_01_00 InvalidDefinitionError
  53. 0x_04_05_01_01 InvalidModuleDefinitionError
  54. 0x_04_05_01_02 InvalidLinkDefinitionError
  55. 0x_04_05_01_03 InvalidPropertyDefinitionError
  56. 0x_04_05_01_04 InvalidUserDefinitionError
  57. 0x_04_05_01_05 InvalidDatabaseDefinitionError
  58. 0x_04_05_01_06 InvalidOperatorDefinitionError
  59. 0x_04_05_01_07 InvalidAliasDefinitionError
  60. 0x_04_05_01_08 InvalidFunctionDefinitionError
  61. 0x_04_05_01_09 InvalidConstraintDefinitionError
  62. 0x_04_05_01_0A InvalidCastDefinitionError
  63. 0x_04_05_02_00 DuplicateDefinitionError
  64. 0x_04_05_02_01 DuplicateModuleDefinitionError
  65. 0x_04_05_02_02 DuplicateLinkDefinitionError
  66. 0x_04_05_02_03 DuplicatePropertyDefinitionError
  67. 0x_04_05_02_04 DuplicateUserDefinitionError
  68. 0x_04_05_02_05 DuplicateDatabaseDefinitionError
  69. 0x_04_05_02_06 DuplicateOperatorDefinitionError
  70. 0x_04_05_02_07 DuplicateViewDefinitionError
  71. 0x_04_05_02_08 DuplicateFunctionDefinitionError
  72. 0x_04_05_02_09 DuplicateConstraintDefinitionError
  73. 0x_04_05_02_0A DuplicateCastDefinitionError
  74. ####
  75. 0x_04_06_00_00 SessionTimeoutError
  76. 0x_04_06_01_00 IdleSessionTimeoutError
  77. 0x_04_06_02_00 QueryTimeoutError
  78. 0x_04_06_0A_00 TransactionTimeoutError
  79. 0x_04_06_0A_01 IdleTransactionTimeoutError
  80. ####
  81. 0x_05_00_00_00 ExecutionError
  82. 0x_05_01_00_00 InvalidValueError
  83. 0x_05_01_00_01 DivisionByZeroError
  84. 0x_05_01_00_02 NumericOutOfRangeError
  85. 0x_05_02_00_00 IntegrityError
  86. 0x_05_02_00_01 ConstraintViolationError
  87. 0x_05_02_00_02 CardinalityViolationError
  88. 0x_05_02_00_03 MissingRequiredError
  89. 0x_05_03_00_00 TransactionError
  90. 0x_05_03_01_00 TransactionConflictError #SHOULD_RETRY
  91. 0x_05_03_01_01 TransactionSerializationError
  92. 0x_05_03_01_02 TransactionDeadlockError
  93. ####
  94. 0x_06_00_00_00 ConfigurationError
  95. ####
  96. 0x_07_00_00_00 AccessError
  97. 0x_07_01_00_00 AuthenticationError
  98. ####
  99. 0x_08_00_00_00 AvailabilityError
  100. 0x_08_00_00_01 BackendUnavailableError #SHOULD_RETRY
  101. ####
  102. 0x_09_00_00_00 BackendError
  103. 0x_09_00_01_00 UnsupportedBackendFeatureError
  104. ####
  105. 0x_F0_00_00_00 LogMessage
  106. 0x_F0_01_00_00 WarningMessage
  107. #### Suggested errors for EdgeDB clients
  108. 0x_FF_00_00_00 ClientError
  109. 0x_FF_01_00_00 ClientConnectionError
  110. 0x_FF_01_01_00 ClientConnectionFailedError
  111. 0x_FF_01_01_01 ClientConnectionFailedTemporarilyError #SHOULD_RECONNECT #SHOULD_RETRY
  112. 0x_FF_01_02_00 ClientConnectionTimeoutError #SHOULD_RECONNECT #SHOULD_RETRY
  113. 0x_FF_01_03_00 ClientConnectionClosedError #SHOULD_RECONNECT #SHOULD_RETRY
  114. 0x_FF_02_00_00 InterfaceError
  115. 0x_FF_02_01_00 QueryArgumentError
  116. 0x_FF_02_01_01 MissingArgumentError
  117. 0x_FF_02_01_02 UnknownArgumentError
  118. 0x_FF_02_01_03 InvalidArgumentError
  119. 0x_FF_03_00_00 NoDataError
  120. 0x_FF_04_00_00 InternalClientError