Skip to content

@graphty/graphty-element / extend / OptionValidationError

Class: OptionValidationError ​

Defined in: graphty-element/src/algorithms/types/OptionSchema.ts:92

Validation error for option schema validation

Extends ​

  • Error

Constructors ​

Constructor ​

new OptionValidationError(optionKey, message): OptionValidationError

Defined in: graphty-element/src/algorithms/types/OptionSchema.ts:98

Creates an option validation error

Parameters ​

optionKey ​

string

The key of the option that failed validation

message ​

string

The validation error message

Returns ​

OptionValidationError

Overrides ​

Error.constructor

Properties ​

optionKey ​

readonly optionKey: string

Defined in: graphty-element/src/algorithms/types/OptionSchema.ts:99

The key of the option that failed validation