prorm API Reference
    Preparing search index...

    Class BulkRecordError

    Error for bulk operation failures

    Hierarchy (View Summary)

    Index
    • Parameters

      • message: string = 'Bulk operation error'
      • options: {
            errors?: {
                index: number;
                record: Record<string, unknown>;
                error: string | Error;
            }[];
            parent?: Error;
            sql?: string;
        } = {}

      Returns BulkRecordError

    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

    errors: {
        index: number;
        record: Record<string, unknown>;
        error: string | Error;
    }[]

    Array of errors for individual records

    • get errorCount(): number

      Get total number of errors

      Returns number

    • Get all error messages

      Returns string[]