InvokeException class

呼び出し応答エラーのカスタム例外。

Extends

Error

コンストラクター

InvokeException(StatusCodes, T)

プロパティ

Error

継承されたプロパティ

message
name
stack

メソッド

createInvokeResponse()

現在のオブジェクトの状態コードと本文を使用して、新しい InvokeResponse オブジェクトを作成するファクトリ メソッド。

コンストラクターの詳細

InvokeException(StatusCodes, T)

new InvokeException(status: StatusCodes, response?: T)

パラメーター

status

StatusCodes

エラーの Http 状態コード。

response

T

オプション。 例外の本文。 既定値は Null です。

プロパティの詳細

Error

static Error: ErrorConstructor

プロパティ値

ErrorConstructor

継承されたプロパティの詳細

message

message: string

プロパティ値

string

継承元 Error.message

name

name: string

プロパティ値

string

Error.name から継承

stack

stack?: string

プロパティ値

string

継承元 Error.stack

メソッドの詳細

createInvokeResponse()

現在のオブジェクトの状態コードと本文を使用して、新しい InvokeResponse オブジェクトを作成するファクトリ メソッド。

function createInvokeResponse(): InvokeResponse

戻り値

InvokeResponse

新しい InvokeResponse オブジェクト。