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 ​
| Parameter | Type |
|---|---|
value | string |
type | ColorSpace |
Returns ​
ColorParseError
Overrides ​
Error.constructor
Properties ​
Methods ​
isError() ​
staticisError(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 ​
| Parameter | Type |
|---|---|
error | unknown |
Returns ​
error is Error
Inherited from ​
Error.isError