Options
All
  • Public
  • Public/Protected
  • All
Menu

ServiceError is a model which captures all types of errors/exceptions received while making service calls

Hierarchy

Index

Constructors

  • new ServiceError(errorType: string, message: string, status: number, statusText: string): ServiceError

Properties

errorType: string
message: string
name: string
stack?: string
status: number
statusText: string
stackTraceLimit: number

Methods

  • captureStackTrace(targetObject: object, constructorOpt?: Function): void
  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

  • make(status: number, statusText: string, responseBody: any): ServiceError

Generated using TypeDoc