ErrorResponse class

Extends

Error

Constructors

ErrorResponse(string)

Properties

activityId
body
code
diagnostics
headers
retryAfterInMilliseconds
retryAfterInMs
substatus

Inherited Properties

message
name
prepareStackTrace

Optional override for formatting stack traces

See https://v8.dev/docs/stack-trace-api#customizing-stack-traces

stack
stackTraceLimit

Inherited Methods

captureStackTrace(object, Function)

Create .stack property on a target object

Constructor Details

ErrorResponse(string)

new ErrorResponse(message?: string)

Parameters

message

string

Property Details

activityId

activityId?: string

Property Value

string

body

body?: ErrorBody

Property Value

code

code?: string | number

Property Value

string | number

diagnostics

diagnostics?: CosmosDiagnostics

Property Value

headers

headers?: CosmosHeaders

Property Value

retryAfterInMilliseconds

retryAfterInMilliseconds?: number

Property Value

number

retryAfterInMs

retryAfterInMs?: number

Property Value

number

substatus

substatus?: number

Property Value

number

Inherited Property Details

message

message: string

Property Value

string

Inherited From Error.message

name

name: string

Property Value

string

Inherited From Error.name

prepareStackTrace

Optional override for formatting stack traces

See https://v8.dev/docs/stack-trace-api#customizing-stack-traces

static prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any

Property Value

(err: Error, stackTraces: CallSite[]) => any

Inherited From Error.prepareStackTrace

stack

stack?: string

Property Value

string

Inherited From Error.stack

stackTraceLimit

static stackTraceLimit: number

Property Value

number

Inherited From Error.stackTraceLimit

Inherited Method Details

captureStackTrace(object, Function)

Create .stack property on a target object

static function captureStackTrace(targetObject: object, constructorOpt?: Function)

Parameters

targetObject

object

constructorOpt

Function

Inherited From Error.captureStackTrace