DataError
Defined in: packages/core/src/encode.ts:23
Data a view cannot draw truthfully: duplicate item ids, a weight that is not positive, a reserved
or duplicated category id, an encoding naming no dimension, or lightness on an unordered
dimension. encodeProfile throws it.
Extends
Section titled “Extends”Error
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new DataError(
message?):DataError
Defined in: site/node_modules/typescript/lib/lib.es5.d.ts:1082
Parameters
Section titled “Parameters”message?
Section titled “message?”string
Returns
Section titled “Returns”DataError
Inherited from
Section titled “Inherited from”Error.constructor
Constructor
Section titled “Constructor”new DataError(
message?,options?):DataError
Defined in: site/node_modules/typescript/lib/lib.es5.d.ts:1082
Parameters
Section titled “Parameters”message?
Section titled “message?”string
options?
Section titled “options?”ErrorOptions
Returns
Section titled “Returns”DataError
Inherited from
Section titled “Inherited from”Error.constructor
Properties
Section titled “Properties”cause?
Section titled “cause?”
optionalcause?:unknown
Defined in: site/node_modules/typescript/lib/lib.es2022.error.d.ts:26
Inherited from
Section titled “Inherited from”Error.cause
message
Section titled “message”message:
string
Defined in: site/node_modules/typescript/lib/lib.es5.d.ts:1077
Inherited from
Section titled “Inherited from”Error.message
name:
string="DataError"
Defined in: packages/core/src/encode.ts:24
Overrides
Section titled “Overrides”Error.name
stack?
Section titled “stack?”
optionalstack?:string
Defined in: site/node_modules/typescript/lib/lib.es5.d.ts:1078
Inherited from
Section titled “Inherited from”Error.stack