Skip to main content

Error Handling

ALX Protocol does not define protocol error codes. Each SDK exposes language-appropriate result and error types while implementing the same protocol behavior.

Result Model

Successful operations return the values produced by the protocol operation.

Invalid input, failed validation, and unsupported operations return or raise SDK-specific errors. Language conventions determine whether an SDK uses result values, error objects, or exceptions.

Language References

Use the language-specific documentation for:

  • return values;
  • error types;
  • exceptions; and
  • validation results.

Choose a language:

When to Handle Errors

Inspect the selected SDK contract before accepting validation results or processing untrusted input. Keep application transport, authorization, and recovery errors separate from protocol operation results.