API Reference > imodeljs-Quantity > Quantity > QuantityError QuantityError Class Beta The error type thrown by this module. See QuantityStatus for errorNumber values. Extends BentleyError Methods Name Description constructor(errorNumber: number, message?: string): QuantityError Inherited methods Name Inherited from Description _initName(): string Protected BentleyError This function returns the name of each error status. getMetaData(): any BentleyError Return the meta data associated with this BentleyError. Inherited properties Name Type Inherited from Description errorNumber Readonly number BentleyError hasMetaData Accessor ReadOnly boolean BentleyError Returns true if this BentleyError includes (optional) meta data. Defined in quantity/src/Exception.ts Line 30 Last Updated: 11 June, 2024