Exception returned by the client if an error occurred.
Most of the functions in the EdgeDB.Error
module are a shorthands for simplifying EdgeDB.Error
exception constructing. These functions
are generated at compile time from a copy of the errors.txt file.
The useful ones are:
EdgeDB.Error.retry?/1
EdgeDB.Error.inheritor?/2
EdgeDB.Error.t/0
@type EdgeDB.Error.t() :: %EdgeDB.Error{message: String.t(), type: module(), name: String.t(), code: integer()}
Exception returned by the client if an error occurred.
Fields:
:message
- human-readable error message.
:type
- alias module for EdgeDB error.
:name
- error name from EdgeDB.
:code
- internal error code.
EdgeDB.Error.access_error(msg, opts \\ [])
@spec EdgeDB.Error.access_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.AccessError
type.
EdgeDB.Error.access_policy_error(msg, opts \\ [])
@spec EdgeDB.Error.access_policy_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.AccessPolicyError
type.
EdgeDB.Error.authentication_error(msg, opts \\ [])
@spec EdgeDB.Error.authentication_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.AuthenticationError
type.
EdgeDB.Error.availability_error(msg, opts \\ [])
@spec EdgeDB.Error.availability_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.AvailabilityError
type.
EdgeDB.Error.backend_error(msg, opts \\ [])
@spec EdgeDB.Error.backend_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.BackendError
type.
EdgeDB.Error.binary_protocol_error(msg, opts \\ [])
@spec EdgeDB.Error.binary_protocol_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.BinaryProtocolError
type.
EdgeDB.Error.capability_error(msg, opts \\ [])
@spec EdgeDB.Error.capability_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.CapabilityError
type.
EdgeDB.Error.cardinality_violation_error(msg, opts \\ [])
@spec EdgeDB.Error.cardinality_violation_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.CardinalityViolationError
type.
EdgeDB.Error.client_connection_closed_error(msg, opts \\ [])
@spec EdgeDB.Error.client_connection_closed_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.ClientConnectionClosedError
type.
EdgeDB.Error.client_connection_error(msg, opts \\ [])
@spec EdgeDB.Error.client_connection_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.ClientConnectionError
type.
EdgeDB.Error.client_connection_failed_error(msg, opts \\ [])
@spec EdgeDB.Error.client_connection_failed_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.ClientConnectionFailedError
type.
EdgeDB.Error.client_connection_failed_temporarily_error(msg, opts \\ [])
@spec EdgeDB.Error.client_connection_failed_temporarily_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.ClientConnectionFailedTemporarilyError
type.
EdgeDB.Error.client_connection_timeout_error(msg, opts \\ [])
@spec EdgeDB.Error.client_connection_timeout_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.ClientConnectionTimeoutError
type.
EdgeDB.Error.client_error(msg, opts \\ [])
@spec EdgeDB.Error.client_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.ClientError
type.
EdgeDB.Error.configuration_error(msg, opts \\ [])
@spec EdgeDB.Error.configuration_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.ConfigurationError
type.
EdgeDB.Error.constraint_violation_error(msg, opts \\ [])
@spec EdgeDB.Error.constraint_violation_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.ConstraintViolationError
type.
EdgeDB.Error.disabled_capability_error(msg, opts \\ [])
@spec EdgeDB.Error.disabled_capability_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.DisabledCapabilityError
type.
EdgeDB.Error.division_by_zero_error(msg, opts \\ [])
@spec EdgeDB.Error.division_by_zero_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.DivisionByZeroError
type.
EdgeDB.Error.duplicate_cast_definition_error(msg, opts \\ [])
@spec EdgeDB.Error.duplicate_cast_definition_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.DuplicateCastDefinitionError
type.
EdgeDB.Error.duplicate_constraint_definition_error(msg, opts \\ [])
@spec EdgeDB.Error.duplicate_constraint_definition_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.DuplicateConstraintDefinitionError
type.
EdgeDB.Error.duplicate_database_definition_error(msg, opts \\ [])
@spec EdgeDB.Error.duplicate_database_definition_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.DuplicateDatabaseDefinitionError
type.
EdgeDB.Error.duplicate_definition_error(msg, opts \\ [])
@spec EdgeDB.Error.duplicate_definition_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.DuplicateDefinitionError
type.
EdgeDB.Error.duplicate_function_definition_error(msg, opts \\ [])
@spec EdgeDB.Error.duplicate_function_definition_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.DuplicateFunctionDefinitionError
type.
EdgeDB.Error.duplicate_link_definition_error(msg, opts \\ [])
@spec EdgeDB.Error.duplicate_link_definition_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.DuplicateLinkDefinitionError
type.
EdgeDB.Error.duplicate_module_definition_error(msg, opts \\ [])
@spec EdgeDB.Error.duplicate_module_definition_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.DuplicateModuleDefinitionError
type.
EdgeDB.Error.duplicate_operator_definition_error(msg, opts \\ [])
@spec EdgeDB.Error.duplicate_operator_definition_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.DuplicateOperatorDefinitionError
type.
EdgeDB.Error.duplicate_property_definition_error(msg, opts \\ [])
@spec EdgeDB.Error.duplicate_property_definition_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.DuplicatePropertyDefinitionError
type.
EdgeDB.Error.duplicate_user_definition_error(msg, opts \\ [])
@spec EdgeDB.Error.duplicate_user_definition_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.DuplicateUserDefinitionError
type.
EdgeDB.Error.duplicate_view_definition_error(msg, opts \\ [])
@spec EdgeDB.Error.duplicate_view_definition_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.DuplicateViewDefinitionError
type.
EdgeDB.Error.edge_ql_syntax_error(msg, opts \\ [])
@spec EdgeDB.Error.edge_ql_syntax_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.EdgeQLSyntaxError
type.
EdgeDB.Error.execution_error(msg, opts \\ [])
@spec EdgeDB.Error.execution_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.ExecutionError
type.
EdgeDB.Error.graph_ql_syntax_error(msg, opts \\ [])
@spec EdgeDB.Error.graph_ql_syntax_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.GraphQLSyntaxError
type.
EdgeDB.Error.idle_session_timeout_error(msg, opts \\ [])
@spec EdgeDB.Error.idle_session_timeout_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.IdleSessionTimeoutError
type.
EdgeDB.Error.idle_transaction_timeout_error(msg, opts \\ [])
@spec EdgeDB.Error.idle_transaction_timeout_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.IdleTransactionTimeoutError
type.
EdgeDB.Error.inheritor?(exception, base_error_type)
@spec EdgeDB.Error.inheritor?(t(), module()) :: boolean()
Check if the exception is an inheritor of another EdgeDB error.
EdgeDB.Error.input_data_error(msg, opts \\ [])
@spec EdgeDB.Error.input_data_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.InputDataError
type.
EdgeDB.Error.integrity_error(msg, opts \\ [])
@spec EdgeDB.Error.integrity_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.IntegrityError
type.
EdgeDB.Error.interface_error(msg, opts \\ [])
@spec EdgeDB.Error.interface_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.InterfaceError
type.
EdgeDB.Error.internal_client_error(msg, opts \\ [])
@spec EdgeDB.Error.internal_client_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.InternalClientError
type.
EdgeDB.Error.internal_server_error(msg, opts \\ [])
@spec EdgeDB.Error.internal_server_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.InternalServerError
type.
EdgeDB.Error.invalid_alias_definition_error(msg, opts \\ [])
@spec EdgeDB.Error.invalid_alias_definition_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.InvalidAliasDefinitionError
type.
EdgeDB.Error.invalid_argument_error(msg, opts \\ [])
@spec EdgeDB.Error.invalid_argument_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.InvalidArgumentError
type.
EdgeDB.Error.invalid_cast_definition_error(msg, opts \\ [])
@spec EdgeDB.Error.invalid_cast_definition_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.InvalidCastDefinitionError
type.
EdgeDB.Error.invalid_constraint_definition_error(msg, opts \\ [])
@spec EdgeDB.Error.invalid_constraint_definition_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.InvalidConstraintDefinitionError
type.
EdgeDB.Error.invalid_database_definition_error(msg, opts \\ [])
@spec EdgeDB.Error.invalid_database_definition_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.InvalidDatabaseDefinitionError
type.
EdgeDB.Error.invalid_definition_error(msg, opts \\ [])
@spec EdgeDB.Error.invalid_definition_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.InvalidDefinitionError
type.
EdgeDB.Error.invalid_function_definition_error(msg, opts \\ [])
@spec EdgeDB.Error.invalid_function_definition_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.InvalidFunctionDefinitionError
type.
EdgeDB.Error.invalid_link_definition_error(msg, opts \\ [])
@spec EdgeDB.Error.invalid_link_definition_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.InvalidLinkDefinitionError
type.
EdgeDB.Error.invalid_link_target_error(msg, opts \\ [])
@spec EdgeDB.Error.invalid_link_target_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.InvalidLinkTargetError
type.
EdgeDB.Error.invalid_module_definition_error(msg, opts \\ [])
@spec EdgeDB.Error.invalid_module_definition_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.InvalidModuleDefinitionError
type.
EdgeDB.Error.invalid_operator_definition_error(msg, opts \\ [])
@spec EdgeDB.Error.invalid_operator_definition_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.InvalidOperatorDefinitionError
type.
EdgeDB.Error.invalid_property_definition_error(msg, opts \\ [])
@spec EdgeDB.Error.invalid_property_definition_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.InvalidPropertyDefinitionError
type.
EdgeDB.Error.invalid_property_target_error(msg, opts \\ [])
@spec EdgeDB.Error.invalid_property_target_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.InvalidPropertyTargetError
type.
EdgeDB.Error.invalid_reference_error(msg, opts \\ [])
@spec EdgeDB.Error.invalid_reference_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.InvalidReferenceError
type.
EdgeDB.Error.invalid_syntax_error(msg, opts \\ [])
@spec EdgeDB.Error.invalid_syntax_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.InvalidSyntaxError
type.
EdgeDB.Error.invalid_target_error(msg, opts \\ [])
@spec EdgeDB.Error.invalid_target_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.InvalidTargetError
type.
EdgeDB.Error.invalid_type_error(msg, opts \\ [])
@spec EdgeDB.Error.invalid_type_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.InvalidTypeError
type.
EdgeDB.Error.invalid_user_definition_error(msg, opts \\ [])
@spec EdgeDB.Error.invalid_user_definition_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.InvalidUserDefinitionError
type.
EdgeDB.Error.invalid_value_error(msg, opts \\ [])
@spec EdgeDB.Error.invalid_value_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.InvalidValueError
type.
EdgeDB.Error.log_message(msg, opts \\ [])
@spec EdgeDB.Error.log_message(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.LogMessage
type.
EdgeDB.Error.missing_argument_error(msg, opts \\ [])
@spec EdgeDB.Error.missing_argument_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.MissingArgumentError
type.
EdgeDB.Error.missing_required_error(msg, opts \\ [])
@spec EdgeDB.Error.missing_required_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.MissingRequiredError
type.
EdgeDB.Error.no_data_error(msg, opts \\ [])
@spec EdgeDB.Error.no_data_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.NoDataError
type.
EdgeDB.Error.numeric_out_of_range_error(msg, opts \\ [])
@spec EdgeDB.Error.numeric_out_of_range_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.NumericOutOfRangeError
type.
EdgeDB.Error.parameter_type_mismatch_error(msg, opts \\ [])
@spec EdgeDB.Error.parameter_type_mismatch_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.ParameterTypeMismatchError
type.
EdgeDB.Error.protocol_error(msg, opts \\ [])
@spec EdgeDB.Error.protocol_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.ProtocolError
type.
EdgeDB.Error.query_argument_error(msg, opts \\ [])
@spec EdgeDB.Error.query_argument_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.QueryArgumentError
type.
EdgeDB.Error.query_error(msg, opts \\ [])
@spec EdgeDB.Error.query_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.QueryError
type.
EdgeDB.Error.query_timeout_error(msg, opts \\ [])
@spec EdgeDB.Error.query_timeout_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.QueryTimeoutError
type.
EdgeDB.Error.reconnect?(exception)
@spec EdgeDB.Error.reconnect?(Exception.t()) :: boolean()
Check if should try to reconnect to EdgeDB server.
NOTE: this function is not used right now, because DBConnection
reconnects it connection itself.
EdgeDB.Error.result_cardinality_mismatch_error(msg, opts \\ [])
@spec EdgeDB.Error.result_cardinality_mismatch_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.ResultCardinalityMismatchError
type.
EdgeDB.Error.retry?(exception)
@spec EdgeDB.Error.retry?(Exception.t()) :: boolean()
Check if should try to repeat the query during the execution of which an error occurred.
EdgeDB.Error.schema_definition_error(msg, opts \\ [])
@spec EdgeDB.Error.schema_definition_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.SchemaDefinitionError
type.
EdgeDB.Error.schema_error(msg, opts \\ [])
@spec EdgeDB.Error.schema_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.SchemaError
type.
EdgeDB.Error.schema_syntax_error(msg, opts \\ [])
@spec EdgeDB.Error.schema_syntax_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.SchemaSyntaxError
type.
EdgeDB.Error.session_timeout_error(msg, opts \\ [])
@spec EdgeDB.Error.session_timeout_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.SessionTimeoutError
type.
EdgeDB.Error.state_mismatch_error(msg, opts \\ [])
@spec EdgeDB.Error.state_mismatch_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.StateMismatchError
type.
EdgeDB.Error.transaction_conflict_error(msg, opts \\ [])
@spec EdgeDB.Error.transaction_conflict_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.TransactionConflictError
type.
EdgeDB.Error.transaction_deadlock_error(msg, opts \\ [])
@spec EdgeDB.Error.transaction_deadlock_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.TransactionDeadlockError
type.
EdgeDB.Error.transaction_error(msg, opts \\ [])
@spec EdgeDB.Error.transaction_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.TransactionError
type.
EdgeDB.Error.transaction_serialization_error(msg, opts \\ [])
@spec EdgeDB.Error.transaction_serialization_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.TransactionSerializationError
type.
EdgeDB.Error.transaction_timeout_error(msg, opts \\ [])
@spec EdgeDB.Error.transaction_timeout_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.TransactionTimeoutError
type.
EdgeDB.Error.type_spec_not_found_error(msg, opts \\ [])
@spec EdgeDB.Error.type_spec_not_found_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.TypeSpecNotFoundError
type.
EdgeDB.Error.unexpected_message_error(msg, opts \\ [])
@spec EdgeDB.Error.unexpected_message_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.UnexpectedMessageError
type.
EdgeDB.Error.unknown_argument_error(msg, opts \\ [])
@spec EdgeDB.Error.unknown_argument_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.UnknownArgumentError
type.
EdgeDB.Error.unknown_database_error(msg, opts \\ [])
@spec EdgeDB.Error.unknown_database_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.UnknownDatabaseError
type.
EdgeDB.Error.unknown_link_error(msg, opts \\ [])
@spec EdgeDB.Error.unknown_link_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.UnknownLinkError
type.
EdgeDB.Error.unknown_module_error(msg, opts \\ [])
@spec EdgeDB.Error.unknown_module_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.UnknownModuleError
type.
EdgeDB.Error.unknown_parameter_error(msg, opts \\ [])
@spec EdgeDB.Error.unknown_parameter_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.UnknownParameterError
type.
EdgeDB.Error.unknown_property_error(msg, opts \\ [])
@spec EdgeDB.Error.unknown_property_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.UnknownPropertyError
type.
EdgeDB.Error.unknown_user_error(msg, opts \\ [])
@spec EdgeDB.Error.unknown_user_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.UnknownUserError
type.
EdgeDB.Error.unsupported_backend_feature_error(msg, opts \\ [])
@spec EdgeDB.Error.unsupported_backend_feature_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.UnsupportedBackendFeatureError
type.
EdgeDB.Error.unsupported_capability_error(msg, opts \\ [])
@spec EdgeDB.Error.unsupported_capability_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.UnsupportedCapabilityError
type.
EdgeDB.Error.unsupported_feature_error(msg, opts \\ [])
@spec EdgeDB.Error.unsupported_feature_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.UnsupportedFeatureError
type.
EdgeDB.Error.unsupported_protocol_version_error(msg, opts \\ [])
@spec EdgeDB.Error.unsupported_protocol_version_error(String.t(), Keyword.t()) :: t()
Create a new EdgeDB.Error
with EdgeDB.UnsupportedProtocolVersionError
type.