Skip to main content

Module error

Module error 

Source
Expand description

Nautilus protocol errors with stable error codes.

Error code ranges:

  • 1000..1999: Schema / Validation errors
  • 2000..2999: Query planning / rendering errors
  • 3000..3999: Database execution errors
  • 9000..9999: Internal engine errors

Standard JSON-RPC errors (negative codes) are reserved for protocol-level issues.

Structs§

BatchOperationErrorData
Structured error.data payload emitted when transaction.batch fails.
ProtocolErrorCause
The original error returned by a failed protocol operation.

Enums§

ProtocolError
Nautilus protocol error.

Constants§

ERR_CHECK_CONSTRAINT
ERR_CONNECTION_FAILED
ERR_CONSTRAINT_VIOLATION
ERR_DATABASE_EXECUTION
ERR_DEADLOCK
ERR_FOREIGN_KEY_CONSTRAINT
ERR_INTERNAL
ERR_INVALID_FIELD
ERR_INVALID_FILTER
ERR_INVALID_METHOD
ERR_INVALID_MODEL
ERR_INVALID_ORDERBY
ERR_INVALID_REQUEST_PARAMS
ERR_NULL_CONSTRAINT
ERR_QUERY_PLANNING
ERR_QUERY_TIMEOUT
ERR_RECORD_NOT_FOUND
ERR_SCHEMA_VALIDATION
ERR_SERIALIZATION_FAILURE
ERR_TRANSACTION_ALREADY_CLOSED
ERR_TRANSACTION_FAILED
ERR_TRANSACTION_NOT_FOUND
ERR_TRANSACTION_TIMEOUT
ERR_TYPE_MISMATCH
ERR_UNIQUE_CONSTRAINT
ERR_UNSUPPORTED_OPERATION
ERR_UNSUPPORTED_PROTOCOL_VERSION

Type Aliases§

Result
Result type alias for protocol operations.