Skip to content

Documentation / @ripl/core / ColorParseError

Class: ColorParseError ​

Defined in: packages/core/src/color/parsers.ts:24

Error thrown when a color string cannot be parsed in the expected format.

Extends ​

  • Error

Constructors ​

Constructor ​

new ColorParseError(value, type): ColorParseError

Defined in: packages/core/src/color/parsers.ts:26

Parameters ​

ParameterType
valuestring
typeColorSpace

Returns ​

ColorParseError

Overrides ​

Error.constructor

Properties ​

PropertyTypeInherited fromDefined in
cause?unknownError.causenode_modules/typescript/lib/lib.es2022.error.d.ts:24
messagestringError.messagenode_modules/typescript/lib/lib.es5.d.ts:1075
namestringError.namenode_modules/typescript/lib/lib.es5.d.ts:1074
stack?stringError.stacknode_modules/typescript/lib/lib.es5.d.ts:1076

Methods ​

isError() ​

static isError(error): error is Error

Defined in: node_modules/typescript/lib/lib.esnext.error.d.ts:21

Indicates whether the argument provided is a built-in Error instance or not.

Parameters ​

ParameterType
errorunknown

Returns ​

error is Error

Inherited from ​

Error.isError