packageDocumentation module import { BentleyError , GetMetaDataFunction } from "@itwin/core-bentley" ; public export enum PresentationStatus { /** Success result. */ Success = 0 , /** Request was cancelled. */ Canceled = 1 , /** Error: Unknown */ Error = 0x10000 , /** Error: Backend is not initialized. */ NotInitialized = Error + 1 , /** Error: Argument is invalid. */ InvalidArgument = Error + 3 , /**
     * Timeout for the request was reached which prevented it from being fulfilled. Frontend may
     * repeat the request.
     */ BackendTimeout = Error + 7 } public export class PresentationError extends BentleyError { param errorNumber param message param log param getMetaData public constructor ( errorNumber , message ? , getMetaData ? ) { super ( errorNumber , message , getMetaData ) ; } /**
     * Returns the name of each error status. The name is used by the `Error.prototype.toString()`
     * method to create a string representation of the error.
     */ protected override _initName ( ) { let value = PresentationStatus [ this . errorNumber ] ; if ( ! value ) value = `Unknown Error (${ this . errorNumber })` ; return value ; } }