Skip to content

Documentation


Documentation / @blazetrails/activemodel / NestedError

Class: NestedError ​

Defined in: packages/activemodel/lib/nested-error.ts:13

Extends ​

Constructors ​

Constructor ​

new NestedError(base, innerError, overrideOptions?): NestedError

Defined in: packages/activemodel/lib/nested-error.ts:16

Parameters ​

ParameterType
baseobject | null
innerErrorErrorLike
overrideOptions{ attribute?: string; type?: string; }
overrideOptions.attribute?string
overrideOptions.type?string

Returns ​

NestedError

Overrides ​

Error.constructor

Properties ​

attribute ​

attribute: string

Defined in: packages/activemodel/lib/error.ts:75

Inherited from ​

Error.attribute


base ​

base: ModelBase

Defined in: packages/activemodel/lib/error.ts:74

Inherited from ​

Error.base


eql ​

eql: (other) => boolean

Defined in: packages/activemodel/lib/error.ts:290

Parameters ​

ParameterType
otherError

Returns ​

boolean

Inherited from ​

Error.eql


innerError ​

readonly innerError: ErrorLike

Defined in: packages/activemodel/lib/nested-error.ts:14


options ​

options: Record<string, unknown>

Defined in: packages/activemodel/lib/error.ts:78

Inherited from ​

Error.options


rawType ​

rawType: string | null

Defined in: packages/activemodel/lib/error.ts:77

Inherited from ​

Error.rawType


type ​

type: string

Defined in: packages/activemodel/lib/error.ts:76

Inherited from ​

Error.type


i18nCustomizeFullMessage ​

static i18nCustomizeFullMessage: boolean

Defined in: packages/activemodel/lib/error.ts:68

Inherited from ​

Error.i18nCustomizeFullMessage

Accessors ​

detail ​

Get Signature ​

get detail(): Record<string, unknown>

Defined in: packages/activemodel/lib/error.ts:248

Returns ​

Record<string, unknown>

Inherited from ​

Error.detail


details ​

Get Signature ​

get details(): Record<string, unknown>

Defined in: packages/activemodel/lib/error.ts:241

Returns ​

Record<string, unknown>

Inherited from ​

Error.details


fullMessage ​

Get Signature ​

get fullMessage(): string | null

Defined in: packages/activemodel/lib/error.ts:252

Returns ​

string | null

Inherited from ​

Error.fullMessage


message ​

Get Signature ​

get message(): string | null

Defined in: packages/activemodel/lib/nested-error.ts:35

Returns ​

string | null

Overrides ​

Error.message

Methods ​

equals() ​

equals(other): boolean

Defined in: packages/activemodel/lib/error.ts:283

Parameters ​

ParameterType
otherError

Returns ​

boolean

Inherited from ​

Error.equals


hash() ​

hash(): number

Defined in: packages/activemodel/lib/error.ts:292

Returns ​

number

Inherited from ​

Error.hash


initializeDup() ​

initializeDup(_other): void

Defined in: packages/activemodel/lib/error.ts:222

Parameters ​

ParameterType
_otherError

Returns ​

void

Inherited from ​

Error.initializeDup


inspect() ​

inspect(): string

Defined in: packages/activemodel/lib/error.ts:301

Returns ​

string

Inherited from ​

Error.inspect


match() ​

match(attribute, type?, options?): boolean

Defined in: packages/activemodel/lib/error.ts:256

Parameters ​

ParameterTypeDefault value
attributestringundefined
typestring | nullnull
optionsRecord<string, unknown>{}

Returns ​

boolean

Inherited from ​

Error.match


strictMatch() ​

strictMatch(attribute, type, options?): boolean

Defined in: packages/activemodel/lib/error.ts:274

Parameters ​

ParameterType
attributestring
typestring
options?Record<string, unknown>

Returns ​

boolean

Inherited from ​

Error.strictMatch


fullMessage() ​

static fullMessage(attribute, message, base): string | null

Defined in: packages/activemodel/lib/error.ts:80

Parameters ​

ParameterType
attributestring
messagestring | null
baseModelBase

Returns ​

string | null

Inherited from ​

Error.fullMessage


generateMessage() ​

static generateMessage(attribute, type, base, options): string

Defined in: packages/activemodel/lib/error.ts:136

Parameters ​

ParameterType
attributestring
typestring
baseModelBase
optionsRecord<string, unknown>

Returns ​

string

Inherited from ​

Error.generateMessage