Skip to main content

Class: UnknownPropertyError

Extends​

Constructors​

new UnknownPropertyError()​

new UnknownPropertyError(property: PropertyKey, value: unknown, options?: ValidatorOptions): UnknownPropertyError

Parameters​

ParameterType
propertyPropertyKey
valueunknown
options?ValidatorOptions

Returns​

UnknownPropertyError

Overrides​

BaseError.constructor

Defined in​

projects/shapeshift/src/lib/errors/UnknownPropertyError.ts:10

Properties​

property​

readonly property: PropertyKey

Defined in​

projects/shapeshift/src/lib/errors/UnknownPropertyError.ts:7


value​

readonly value: unknown

Defined in​

projects/shapeshift/src/lib/errors/UnknownPropertyError.ts:8

Methods​

[customInspectSymbol]()​

protected [customInspectSymbol](depth: number, options: InspectOptionsStylized): string

Parameters​

ParameterType
depthnumber
optionsInspectOptionsStylized

Returns​

string

Inherited from​

BaseError.[customInspectSymbol]

Defined in​

projects/shapeshift/src/lib/errors/BaseError.ts:15


[customInspectSymbolStackLess]()​

protected [customInspectSymbolStackLess](depth: number, options: InspectOptionsStylized): string

Parameters​

ParameterType
depthnumber
optionsInspectOptionsStylized

Returns​

string

Overrides​

BaseError.[customInspectSymbolStackLess]

Defined in​

projects/shapeshift/src/lib/errors/UnknownPropertyError.ts:26


toJSON()​

toJSON(): UnknownEnumKeyErrorJsonified

Returns​

UnknownEnumKeyErrorJsonified

Overrides​

BaseError.toJSON

Defined in​

projects/shapeshift/src/lib/errors/UnknownPropertyError.ts:17