Interface ErrorAttributeOption<T>

interface ErrorAttributeOption<T> {
    code: keyof T;
    detail: keyof T;
    id: keyof T;
    source: Partial<ErrorSourceAttribute<T>>;
    status: keyof T;
    title: keyof T;
}

Type Parameters

  • T

Properties

code: keyof T

An application-specific error code.

Default Value

"name"

detail: keyof T

A human-readable explanation specific to this occurrence of the problem. Like title, this field’s value can be localized.

Default Value

"message"

id: keyof T

A unique identifier for this particular occurrence of the problem.

Default Value

"id"

source: Partial<ErrorSourceAttribute<T>>

An object containing references to the source of the error, optionally including any of the following members.

status: keyof T

The HTTP status code applicable to this problem.

Default Value

"code"

title: keyof T

A short, human-readable summary of the problem that SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.

Default Value

"reason"

Generated using TypeDoc