Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Hierarchy

  • Error
    • ServiceError

Index

Constructors

constructor

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

Properties

Readonly errorType

errorType: string

Readonly message

message: string

name

name: string

Optional stack

stack: string

Readonly status

status: number

Readonly statusText

statusText: string

Static stackTraceLimit

stackTraceLimit: number

Methods

Static captureStackTrace

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

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Static make

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

Static Optional prepareStackTrace

  • prepareStackTrace(err: Error, stackTraces: CallSite[]): any

Generated using TypeDoc