Class: ExpectedValidationError<T>
Extends
Type Parameters
Type Parameter |
---|
T |
Constructors
new ExpectedValidationError()
new ExpectedValidationError<
T
>(validator
:string
,message
:string
,given
:unknown
,expected
:T
):ExpectedValidationError
<T
>
Parameters
Parameter | Type |
---|---|
validator | string |
message | string |
given | unknown |
expected | T |
Returns
Overrides
Defined in
projects/shapeshift/src/lib/errors/ExpectedValidationError.ts:9
Properties
expected
readonly
expected:T
Defined in
projects/shapeshift/src/lib/errors/ExpectedValidationError.ts:7
given
readonly
given:unknown
Inherited from
Defined in
projects/shapeshift/src/lib/errors/ValidationError.ts:7
validator
readonly
validator:string
Inherited from
Defined in
projects/shapeshift/src/lib/errors/ValidationError.ts:6
Methods
[customInspectSymbol]()
protected
[customInspectSymbol](depth
:number
,options
:InspectOptionsStylized
):string
Parameters
Parameter | Type |
---|---|
depth | number |
options | InspectOptionsStylized |
Returns
string
Inherited from
ValidationError
.[customInspectSymbol]
Defined in
projects/shapeshift/src/lib/errors/BaseError.ts:15
[customInspectSymbolStackLess]()
protected
[customInspectSymbolStackLess](depth
:number
,options
:InspectOptionsStylized
):string
Parameters
Parameter | Type |
---|---|
depth | number |
options | InspectOptionsStylized |
Returns
string
Overrides
ValidationError
.[customInspectSymbolStackLess]
Defined in
projects/shapeshift/src/lib/errors/ExpectedValidationError.ts:24
toJSON()
toJSON():
ExpectedValidationErrorJsonified
<T
>
Returns
ExpectedValidationErrorJsonified
<T
>
Overrides
Defined in
projects/shapeshift/src/lib/errors/ExpectedValidationError.ts:14