Module error

Module error 

Source
Expand description

Error handling module for the microsandbox server.

This module provides comprehensive error handling functionality including:

  • Custom error types for server operations
  • Error codes and responses for API communication
  • Authentication and authorization error handling
  • Validation error handling

The module implements:

  • Error types with detailed error messages
  • HTTP status code mapping
  • Serializable error responses for API clients
  • Structured error codes for frontend handling

Enums§

AuthenticationError
Represents different types of authentication failures
AuthorizationError
Represents authorization errors
ErrorCode
Error code structure to be sent to frontend
MicrosandboxServerError
Error returned when an unexpected internal error occurs
ServerError
Represents all possible errors that can occur in the application
ValidationError
Represents validation errors

Type Aliases§

MicrosandboxServerResult
The result of microsandbox-server operations in general.
ServerResult
The result of server-related operations.