Skip to content

Class: NumericValidationError ​

Defined in: utils/validation.ts:12

Typed error thrown before a public numeric mutation can change observable state.

Extends ​

  • RangeError

Constructors ​

Constructor ​

ts
new NumericValidationError(
   code, 
   parameter, 
   message, 
   value
): NumericValidationError;

Defined in: utils/validation.ts:17

Parameters ​

code ​

NumericValidationErrorCode

parameter ​

string

message ​

string

value ​

unknown

Returns ​

NumericValidationError

Overrides ​

ts
RangeError.constructor

Properties ​

code ​

ts
readonly code: NumericValidationErrorCode;

Defined in: utils/validation.ts:13


parameter ​

ts
readonly parameter: string;

Defined in: utils/validation.ts:14


value ​

ts
readonly value: unknown;

Defined in: utils/validation.ts:15

Released under the MIT License.