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
| Parameter | Type |
|---|---|
base | object | null |
innerError | ErrorLike |
overrideOptions | { attribute?: string; type?: string; } |
overrideOptions.attribute? | string |
overrideOptions.type? | string |
Returns
NestedError
Overrides
Properties
attribute
attribute:
string
Defined in: packages/activemodel/lib/error.ts:75
Inherited from
base
base:
ModelBase
Defined in: packages/activemodel/lib/error.ts:74
Inherited from
eql
eql: (
other) =>boolean
Defined in: packages/activemodel/lib/error.ts:290
Parameters
| Parameter | Type |
|---|---|
other | Error |
Returns
boolean
Inherited from
innerError
readonlyinnerError: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
rawType
rawType:
string|null
Defined in: packages/activemodel/lib/error.ts:77
Inherited from
type
type:
string
Defined in: packages/activemodel/lib/error.ts:76
Inherited from
i18nCustomizeFullMessage
statici18nCustomizeFullMessage: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
details
Get Signature
get details():
Record<string,unknown>
Defined in: packages/activemodel/lib/error.ts:241
Returns
Record<string, unknown>
Inherited from
fullMessage
Get Signature
get fullMessage():
string|null
Defined in: packages/activemodel/lib/error.ts:252
Returns
string | null
Inherited from
message
Get Signature
get message():
string|null
Defined in: packages/activemodel/lib/nested-error.ts:35
Returns
string | null
Overrides
Methods
equals()
equals(
other):boolean
Defined in: packages/activemodel/lib/error.ts:283
Parameters
| Parameter | Type |
|---|---|
other | Error |
Returns
boolean
Inherited from
hash()
hash():
number
Defined in: packages/activemodel/lib/error.ts:292
Returns
number
Inherited from
initializeDup()
initializeDup(
_other):void
Defined in: packages/activemodel/lib/error.ts:222
Parameters
| Parameter | Type |
|---|---|
_other | Error |
Returns
void
Inherited from
inspect()
inspect():
string
Defined in: packages/activemodel/lib/error.ts:301
Returns
string
Inherited from
match()
match(
attribute,type?,options?):boolean
Defined in: packages/activemodel/lib/error.ts:256
Parameters
| Parameter | Type | Default value |
|---|---|---|
attribute | string | undefined |
type | string | null | null |
options | Record<string, unknown> | {} |
Returns
boolean
Inherited from
strictMatch()
strictMatch(
attribute,type,options?):boolean
Defined in: packages/activemodel/lib/error.ts:274
Parameters
| Parameter | Type |
|---|---|
attribute | string |
type | string |
options? | Record<string, unknown> |
Returns
boolean
Inherited from
fullMessage()
staticfullMessage(attribute,message,base):string|null
Defined in: packages/activemodel/lib/error.ts:80
Parameters
| Parameter | Type |
|---|---|
attribute | string |
message | string | null |
base | ModelBase |
Returns
string | null
Inherited from
generateMessage()
staticgenerateMessage(attribute,type,base,options):string
Defined in: packages/activemodel/lib/error.ts:136
Parameters
| Parameter | Type |
|---|---|
attribute | string |
type | string |
base | ModelBase |
options | Record<string, unknown> |
Returns
string