Gel.Error exception (Gel v0.9.0)
View SourceException returned by the client if an error occurred.
Most of the functions in the Gel.Error
module are a shorthands for simplifying Gel.Error
exception
constructing. These functions are generated at compile time from a copy of the
errors.txt file.
The useful ones are:
By default the client generates exception messages in full format, attempting to output all useful information about the error location if it is possible.
This behavior can be disabled by using the :render_error_hints
configuration of the :gel
application.
The renderer also tries to colorize the output message. This behavior defaults to IO.ANSI.enabled?/0
,
but can also be configured with the :rended_colored_errors
setting for the :gel
application.
Summary
Functions
Create a new Gel.Error
with Gel.AccessError
type.
Create a new Gel.Error
with Gel.AccessPolicyError
type.
Create a new Gel.Error
with Gel.AuthenticationError
type.
Create a new Gel.Error
with Gel.AvailabilityError
type.
Create a new Gel.Error
with Gel.BackendError
type.
Create a new Gel.Error
with Gel.BackendUnavailableError
type.
Create a new Gel.Error
with Gel.BinaryProtocolError
type.
Create a new Gel.Error
with Gel.CapabilityError
type.
Create a new Gel.Error
with Gel.CardinalityViolationError
type.
Create a new Gel.Error
with Gel.ClientConnectionClosedError
type.
Create a new Gel.Error
with Gel.ClientConnectionError
type.
Create a new Gel.Error
with Gel.ClientConnectionFailedError
type.
Create a new Gel.Error
with Gel.ClientConnectionFailedTemporarilyError
type.
Create a new Gel.Error
with Gel.ClientConnectionTimeoutError
type.
Create a new Gel.Error
with Gel.ClientError
type.
Create a new Gel.Error
with Gel.ConfigurationError
type.
Create a new Gel.Error
with Gel.ConstraintViolationError
type.
Create a new Gel.Error
with Gel.DeprecatedScopingError
type.
Create a new Gel.Error
with Gel.DisabledCapabilityError
type.
Create a new Gel.Error
with Gel.DivisionByZeroError
type.
Create a new Gel.Error
with Gel.DuplicateCastDefinitionError
type.
Create a new Gel.Error
with Gel.DuplicateConstraintDefinitionError
type.
Create a new Gel.Error
with Gel.DuplicateDatabaseDefinitionError
type.
Create a new Gel.Error
with Gel.DuplicateDefinitionError
type.
Create a new Gel.Error
with Gel.DuplicateFunctionDefinitionError
type.
Create a new Gel.Error
with Gel.DuplicateLinkDefinitionError
type.
Create a new Gel.Error
with Gel.DuplicateMigrationError
type.
Create a new Gel.Error
with Gel.DuplicateModuleDefinitionError
type.
Create a new Gel.Error
with Gel.DuplicateOperatorDefinitionError
type.
Create a new Gel.Error
with Gel.DuplicatePropertyDefinitionError
type.
Create a new Gel.Error
with Gel.DuplicateUserDefinitionError
type.
Create a new Gel.Error
with Gel.DuplicateViewDefinitionError
type.
Create a new Gel.Error
with Gel.EdgeQLSyntaxError
type.
Create a new Gel.Error
with Gel.ExecutionError
type.
Create a new Gel.Error
with Gel.GraphQLSyntaxError
type.
Create a new Gel.Error
with Gel.IdleSessionTimeoutError
type.
Create a new Gel.Error
with Gel.IdleTransactionTimeoutError
type.
Check if the exception is an inheritor of another Gel error.
Create a new Gel.Error
with Gel.InputDataError
type.
Create a new Gel.Error
with Gel.IntegrityError
type.
Create a new Gel.Error
with Gel.InterfaceError
type.
Create a new Gel.Error
with Gel.InternalClientError
type.
Create a new Gel.Error
with Gel.InternalServerError
type.
Create a new Gel.Error
with Gel.InvalidAliasDefinitionError
type.
Create a new Gel.Error
with Gel.InvalidArgumentError
type.
Create a new Gel.Error
with Gel.InvalidCastDefinitionError
type.
Create a new Gel.Error
with Gel.InvalidConstraintDefinitionError
type.
Create a new Gel.Error
with Gel.InvalidDatabaseDefinitionError
type.
Create a new Gel.Error
with Gel.InvalidDefinitionError
type.
Create a new Gel.Error
with Gel.InvalidFunctionDefinitionError
type.
Create a new Gel.Error
with Gel.InvalidLinkDefinitionError
type.
Create a new Gel.Error
with Gel.InvalidLinkTargetError
type.
Create a new Gel.Error
with Gel.InvalidModuleDefinitionError
type.
Create a new Gel.Error
with Gel.InvalidOperatorDefinitionError
type.
Create a new Gel.Error
with Gel.InvalidPropertyDefinitionError
type.
Create a new Gel.Error
with Gel.InvalidPropertyTargetError
type.
Create a new Gel.Error
with Gel.InvalidReferenceError
type.
Create a new Gel.Error
with Gel.InvalidSyntaxError
type.
Create a new Gel.Error
with Gel.InvalidTargetError
type.
Create a new Gel.Error
with Gel.InvalidTypeError
type.
Create a new Gel.Error
with Gel.InvalidUserDefinitionError
type.
Create a new Gel.Error
with Gel.InvalidValueError
type.
Create a new Gel.Error
with Gel.LogMessage
type.
Create a new Gel.Error
with Gel.MissingArgumentError
type.
Create a new Gel.Error
with Gel.MissingRequiredError
type.
Create a new Gel.Error
with Gel.NoDataError
type.
Create a new Gel.Error
with Gel.NumericOutOfRangeError
type.
Create a new Gel.Error
with Gel.ParameterTypeMismatchError
type.
Create a new Gel.Error
with Gel.ProtocolError
type.
Create a new Gel.Error
with Gel.QueryArgumentError
type.
Create a new Gel.Error
with Gel.QueryAssertionError
type.
Create a new Gel.Error
with Gel.QueryError
type.
Create a new Gel.Error
with Gel.QueryTimeoutError
type.
Check if should try to reconnect to Gel server.
Create a new Gel.Error
with Gel.ResultCardinalityMismatchError
type.
Check if should try to repeat the query during the execution of which an error occurred.
Create a new Gel.Error
with Gel.SchemaDefinitionError
type.
Create a new Gel.Error
with Gel.SchemaError
type.
Create a new Gel.Error
with Gel.SchemaSyntaxError
type.
Create a new Gel.Error
with Gel.ServerBlockedError
type.
Create a new Gel.Error
with Gel.ServerOfflineError
type.
Create a new Gel.Error
with Gel.SessionTimeoutError
type.
Create a new Gel.Error
with Gel.StateMismatchError
type.
Create a new Gel.Error
with Gel.TransactionConflictError
type.
Create a new Gel.Error
with Gel.TransactionDeadlockError
type.
Create a new Gel.Error
with Gel.TransactionError
type.
Create a new Gel.Error
with Gel.TransactionSerializationError
type.
Create a new Gel.Error
with Gel.TransactionTimeoutError
type.
Create a new Gel.Error
with Gel.TypeSpecNotFoundError
type.
Create a new Gel.Error
with Gel.UnexpectedMessageError
type.
Create a new Gel.Error
with Gel.UnknownArgumentError
type.
Create a new Gel.Error
with Gel.UnknownDatabaseError
type.
Create a new Gel.Error
with Gel.UnknownLinkError
type.
Create a new Gel.Error
with Gel.UnknownModuleError
type.
Create a new Gel.Error
with Gel.UnknownParameterError
type.
Create a new Gel.Error
with Gel.UnknownPropertyError
type.
Create a new Gel.Error
with Gel.UnknownTenantError
type.
Create a new Gel.Error
with Gel.UnknownUserError
type.
Create a new Gel.Error
with Gel.UnsupportedBackendFeatureError
type.
Create a new Gel.Error
with Gel.UnsupportedCapabilityError
type.
Create a new Gel.Error
with Gel.UnsupportedFeatureError
type.
Create a new Gel.Error
with Gel.UnsupportedProtocolVersionError
type.
Create a new Gel.Error
with Gel.WarningMessage
type.
Create a new Gel.Error
with Gel.WatchError
type.
Types
Functions
Create a new Gel.Error
with Gel.AccessError
type.
Create a new Gel.Error
with Gel.AccessPolicyError
type.
Create a new Gel.Error
with Gel.AuthenticationError
type.
Create a new Gel.Error
with Gel.AvailabilityError
type.
Create a new Gel.Error
with Gel.BackendError
type.
Create a new Gel.Error
with Gel.BinaryProtocolError
type.
Create a new Gel.Error
with Gel.CapabilityError
type.
Create a new Gel.Error
with Gel.CardinalityViolationError
type.
Create a new Gel.Error
with Gel.ClientConnectionClosedError
type.
Create a new Gel.Error
with Gel.ClientConnectionError
type.
Create a new Gel.Error
with Gel.ClientConnectionFailedError
type.
Create a new Gel.Error
with Gel.ClientConnectionFailedTemporarilyError
type.
Create a new Gel.Error
with Gel.ClientConnectionTimeoutError
type.
Create a new Gel.Error
with Gel.ClientError
type.
Create a new Gel.Error
with Gel.ConfigurationError
type.
Create a new Gel.Error
with Gel.ConstraintViolationError
type.
Create a new Gel.Error
with Gel.DeprecatedScopingError
type.
Create a new Gel.Error
with Gel.DisabledCapabilityError
type.
Create a new Gel.Error
with Gel.DivisionByZeroError
type.
Create a new Gel.Error
with Gel.DuplicateCastDefinitionError
type.
Create a new Gel.Error
with Gel.DuplicateConstraintDefinitionError
type.
Create a new Gel.Error
with Gel.DuplicateDatabaseDefinitionError
type.
Create a new Gel.Error
with Gel.DuplicateDefinitionError
type.
Create a new Gel.Error
with Gel.DuplicateFunctionDefinitionError
type.
Create a new Gel.Error
with Gel.DuplicateLinkDefinitionError
type.
Create a new Gel.Error
with Gel.DuplicateMigrationError
type.
Create a new Gel.Error
with Gel.DuplicateModuleDefinitionError
type.
Create a new Gel.Error
with Gel.DuplicateOperatorDefinitionError
type.
Create a new Gel.Error
with Gel.DuplicatePropertyDefinitionError
type.
Create a new Gel.Error
with Gel.DuplicateUserDefinitionError
type.
Create a new Gel.Error
with Gel.DuplicateViewDefinitionError
type.
Create a new Gel.Error
with Gel.EdgeQLSyntaxError
type.
Create a new Gel.Error
with Gel.ExecutionError
type.
Create a new Gel.Error
with Gel.GraphQLSyntaxError
type.
Create a new Gel.Error
with Gel.IdleSessionTimeoutError
type.
Create a new Gel.Error
with Gel.IdleTransactionTimeoutError
type.
Check if the exception is an inheritor of another Gel error.
Create a new Gel.Error
with Gel.InputDataError
type.
Create a new Gel.Error
with Gel.IntegrityError
type.
Create a new Gel.Error
with Gel.InterfaceError
type.
Create a new Gel.Error
with Gel.InternalClientError
type.
Create a new Gel.Error
with Gel.InternalServerError
type.
Create a new Gel.Error
with Gel.InvalidAliasDefinitionError
type.
Create a new Gel.Error
with Gel.InvalidArgumentError
type.
Create a new Gel.Error
with Gel.InvalidCastDefinitionError
type.
Create a new Gel.Error
with Gel.InvalidConstraintDefinitionError
type.
Create a new Gel.Error
with Gel.InvalidDatabaseDefinitionError
type.
Create a new Gel.Error
with Gel.InvalidDefinitionError
type.
Create a new Gel.Error
with Gel.InvalidFunctionDefinitionError
type.
Create a new Gel.Error
with Gel.InvalidLinkDefinitionError
type.
Create a new Gel.Error
with Gel.InvalidLinkTargetError
type.
Create a new Gel.Error
with Gel.InvalidModuleDefinitionError
type.
Create a new Gel.Error
with Gel.InvalidOperatorDefinitionError
type.
Create a new Gel.Error
with Gel.InvalidPropertyDefinitionError
type.
Create a new Gel.Error
with Gel.InvalidPropertyTargetError
type.
Create a new Gel.Error
with Gel.InvalidReferenceError
type.
Create a new Gel.Error
with Gel.InvalidSyntaxError
type.
Create a new Gel.Error
with Gel.InvalidTargetError
type.
Create a new Gel.Error
with Gel.InvalidTypeError
type.
Create a new Gel.Error
with Gel.InvalidUserDefinitionError
type.
Create a new Gel.Error
with Gel.InvalidValueError
type.
Create a new Gel.Error
with Gel.LogMessage
type.
Create a new Gel.Error
with Gel.MissingArgumentError
type.
Create a new Gel.Error
with Gel.MissingRequiredError
type.
Create a new Gel.Error
with Gel.NoDataError
type.
Create a new Gel.Error
with Gel.NumericOutOfRangeError
type.
Create a new Gel.Error
with Gel.ParameterTypeMismatchError
type.
Create a new Gel.Error
with Gel.ProtocolError
type.
Create a new Gel.Error
with Gel.QueryArgumentError
type.
Create a new Gel.Error
with Gel.QueryAssertionError
type.
Create a new Gel.Error
with Gel.QueryError
type.
Create a new Gel.Error
with Gel.QueryTimeoutError
type.
@spec reconnect?(Exception.t()) :: boolean()
Check if should try to reconnect to Gel server.
NOTE: this function is not used right now, because DBConnection
reconnects it connection itself.
Create a new Gel.Error
with Gel.ResultCardinalityMismatchError
type.
@spec retry?(Exception.t()) :: boolean()
Check if should try to repeat the query during the execution of which an error occurred.
Create a new Gel.Error
with Gel.SchemaDefinitionError
type.
Create a new Gel.Error
with Gel.SchemaError
type.
Create a new Gel.Error
with Gel.SchemaSyntaxError
type.
Create a new Gel.Error
with Gel.ServerBlockedError
type.
Create a new Gel.Error
with Gel.ServerOfflineError
type.
Create a new Gel.Error
with Gel.SessionTimeoutError
type.
Create a new Gel.Error
with Gel.StateMismatchError
type.
Create a new Gel.Error
with Gel.TransactionConflictError
type.
Create a new Gel.Error
with Gel.TransactionDeadlockError
type.
Create a new Gel.Error
with Gel.TransactionError
type.
Create a new Gel.Error
with Gel.TransactionSerializationError
type.
Create a new Gel.Error
with Gel.TransactionTimeoutError
type.
Create a new Gel.Error
with Gel.TypeSpecNotFoundError
type.
Create a new Gel.Error
with Gel.UnexpectedMessageError
type.
Create a new Gel.Error
with Gel.UnknownArgumentError
type.
Create a new Gel.Error
with Gel.UnknownDatabaseError
type.
Create a new Gel.Error
with Gel.UnknownLinkError
type.
Create a new Gel.Error
with Gel.UnknownModuleError
type.
Create a new Gel.Error
with Gel.UnknownParameterError
type.
Create a new Gel.Error
with Gel.UnknownPropertyError
type.
Create a new Gel.Error
with Gel.UnknownTenantError
type.
Create a new Gel.Error
with Gel.UnknownUserError
type.
Create a new Gel.Error
with Gel.UnsupportedBackendFeatureError
type.
Create a new Gel.Error
with Gel.UnsupportedCapabilityError
type.
Create a new Gel.Error
with Gel.UnsupportedFeatureError
type.
Create a new Gel.Error
with Gel.UnsupportedProtocolVersionError
type.
Create a new Gel.Error
with Gel.WarningMessage
type.
Create a new Gel.Error
with Gel.WatchError
type.