Skip to main content

Module codes

Module codes 

Source
Expand description

Definition of external error codes

This module defines a standardized error code system for the following purposes: Client response The API returns the data. Protocol serialization

Error code format: XXYY XX: Error category (00 = Success, 01 = Syntax, 02 = Execution, 03 = Validation, 04 = Permissions, 05 = Resources, 09 = System)

  • YY: Specific error

Structs§

PublicError
External error message-used to serialize into the response

Enums§

ErrorCategory
error category
ErrorCode
External error code – used for client responses

Traits§

ToPublicError
conversion trait of internal errors to external errors