@ladesa-ro/api-client-fetch - v1.0.0-next.35
    Preparing search index...

    Class ApiError

    Hierarchy

    Index

    Constructors

    • Parameters

      • request: ApiRequestOptions
      • response: ApiResult
      • message: string

      Returns ApiError

    Properties

    body: unknown
    cause?: unknown

    The cause of the error.

    message: string
    name: string
    request: ApiRequestOptions
    stack?: string
    status: number
    statusText: string
    url: string
    prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any

    Optional override for formatting stack traces

    stackTraceLimit: number

    The maximum number of stack frames to capture.

    Methods

    • Create .stack property on a target object

      Parameters

      • targetObject: object
      • OptionalconstructorOpt: Function

      Returns void

    • Create .stack property on a target object

      Parameters

      • targetObject: object
      • OptionalconstructorOpt: Function

      Returns void

    • Check if a value is an instance of Error

      Parameters

      • value: unknown

        The value to check

      Returns value is Error

      True if the value is an instance of Error, false otherwise