API Reference > imodeljs-common > iModels > IModelError IModelError Class The error type thrown by this module. See IModelStatus for errorNumber values. Extends BentleyError Extended by ServerError BackendError NoContentError Methods Name Description constructor(errorNumber: number, message: string, log?: LogFunction, category?: string, getMetaData?: GetMetaDataFunction): IModelError Construct a new BentleyError 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 number BentleyError hasMetaData Accessor ReadOnly boolean BentleyError Returns true if this BentleyError includes (optional) meta data. Defined in core/common/src/IModelError.ts Line 19 Last Updated: 11 June, 2024