Iskra API Reference
    Preparing search index...

    Interface ErrorCodeRegistry

    Every error code, as keys: Iskra's own (ErrorCodes) and the ones an app adds by merging into this interface, which ErrorCode then accepts:

    declare module '@iskra-bun/core' {
    interface ErrorCodeRegistry {
    ORDER_LOCKED: true;
    }
    }
    throw new HttpError(423, 'The order is being edited', { code: 'ORDER_LOCKED' });
    interface ErrorCodeRegistry {
        ADAPTER_ERROR: true;
        BAD_REQUEST: true;
        CACHE_ERROR: true;
        CONFIG_INVALID: true;
        CONFIG_MISSING: true;
        CONFLICT: true;
        CONNECTION_ERROR: true;
        DATABASE_ERROR: true;
        DRIVER_INIT_FAILED: true;
        DRIVER_NOT_FOUND: true;
        DRIVER_START_FAILED: true;
        DRIVER_STOP_FAILED: true;
        FILE_NOT_FOUND: true;
        FILE_UPLOAD_ERROR: true;
        FORBIDDEN: true;
        INTERNAL_ERROR: true;
        JOB_ERROR: true;
        LIFECYCLE_START_FAILED: true;
        LIFECYCLE_STOP_FAILED: true;
        METHOD_NOT_ALLOWED: true;
        MIGRATION_ERROR: true;
        NOT_FOUND: true;
        NOT_INITIALIZED: true;
        PAYLOAD_TOO_LARGE: true;
        PLUGIN_INSTALL_FAILED: true;
        QUERY_ERROR: true;
        QUEUE_ERROR: true;
        RATE_LIMITED: true;
        SERVICE_UNAVAILABLE: true;
        SOCKET_CONNECTION_ERROR: true;
        SOCKET_MESSAGE_ERROR: true;
        STORAGE_ERROR: true;
        TIMEOUT: true;
        UNAUTHORIZED: true;
        UNSUPPORTED_MEDIA_TYPE: true;
        VALIDATION_ERROR: true;
    }

    Hierarchy

    Index
    ADAPTER_ERROR: true
    BAD_REQUEST: true
    CACHE_ERROR: true
    CONFIG_INVALID: true
    CONFIG_MISSING: true
    CONFLICT: true
    CONNECTION_ERROR: true
    DATABASE_ERROR: true
    DRIVER_INIT_FAILED: true
    DRIVER_NOT_FOUND: true
    DRIVER_START_FAILED: true
    DRIVER_STOP_FAILED: true
    FILE_NOT_FOUND: true
    FILE_UPLOAD_ERROR: true
    FORBIDDEN: true
    INTERNAL_ERROR: true
    JOB_ERROR: true
    LIFECYCLE_START_FAILED: true
    LIFECYCLE_STOP_FAILED: true
    METHOD_NOT_ALLOWED: true
    MIGRATION_ERROR: true
    NOT_FOUND: true
    NOT_INITIALIZED: true
    PAYLOAD_TOO_LARGE: true
    PLUGIN_INSTALL_FAILED: true
    QUERY_ERROR: true
    QUEUE_ERROR: true
    RATE_LIMITED: true
    SERVICE_UNAVAILABLE: true
    SOCKET_CONNECTION_ERROR: true
    SOCKET_MESSAGE_ERROR: true
    STORAGE_ERROR: true
    TIMEOUT: true
    UNAUTHORIZED: true
    UNSUPPORTED_MEDIA_TYPE: true
    VALIDATION_ERROR: true