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