prorm API Reference
    Preparing search index...

    Class PrormError

    Base error class for all Prorm errors

    Hierarchy (View Summary)

    Index
    • Parameters

      • message: string
      • options: {
            code?: ErrorCode;
            parent?: Error;
            sql?: string;
            metadata?: Record<string, unknown>;
        } = {}

      Returns PrormError

    code: ErrorCode

    Unique error code for programmatic handling

    parent?: Error

    Original error that caused this error

    sql?: string

    SQL query that caused the error

    metadata?: Record<string, unknown>

    Additional error properties

    • Convert to JSON for serialization

      Returns Record<string, unknown>