Interface UcViolation

Schema constraint violation reason.

A more specific kind of rejection charge.

Hierarchy

Properties

cause?: unknown

Error cause. E.g. an exception thrown.

code: "violation"

Error code always equal to violation.

details: {
    constraint: string;
    [key: string]: unknown;
}

Violation details that can be used e.g. to build localized error message.

Type declaration

  • [key: string]: unknown
  • Readonly constraint: string

    Name of violated constraint.

message?: string

Default error message in English.

Default Value

'Unexpected error'

Generated using TypeDoc