InvokeException class
Eccezione personalizzata per richiamare gli errori di risposta.
- Extends
-
Error
Costruttori
| Invoke |
Proprietà
| Error |
Proprietà ereditate
| message | |
| name | |
| stack |
Metodi
| create |
Metodo factory che crea un nuovo oggetto InvokeResponse con il codice di stato e il corpo dell'oggetto corrente. |
Dettagli costruttore
InvokeException(StatusCodes, T)
new InvokeException(status: StatusCodes, response?: T)
Parametri
- status
-
StatusCodes
Codice di stato Http dell'errore.
- response
-
T
opzionale. Corpo dell'eccezione. Il valore predefinito è Null.
Dettagli proprietà
Error
static Error: ErrorConstructor
Valore della proprietà
ErrorConstructor
Dettagli proprietà ereditate
message
message: string
Valore della proprietà
string
Ereditato da Error.message
name
name: string
Valore della proprietà
string
ereditato da Error.name
stack
stack?: string
Valore della proprietà
string
ereditato da Error.stack
Dettagli metodo
createInvokeResponse()
Metodo factory che crea un nuovo oggetto InvokeResponse con il codice di stato e il corpo dell'oggetto corrente.
function createInvokeResponse(): InvokeResponse
Restituisce
InvokeResponse
Nuovo oggetto InvokeResponse.