Defines error info type. This includes a code and message string.
Signature:
export interface ErrorInfo
Properties
| Property | Type | Description |
|---|---|---|
| cause | Error | The original wrapped error that triggered this error, if any. |
| code | string | The string error code. |
| httpResponse | HttpResponse | The HTTP response associated with this error, if any. |
| message | string | The error message. |
ErrorInfo.cause
The original wrapped error that triggered this error, if any.
Signature:
cause?: Error;
ErrorInfo.code
The string error code.
Signature:
code: string;
ErrorInfo.httpResponse
The HTTP response associated with this error, if any.
Signature:
httpResponse?: HttpResponse;
ErrorInfo.message
The error message.
Signature:
message: string;