Codeunit "Rest Client Exception Builder"
ID 2362
Namespace: System.RestClient
Properties
| Name | Value |
|---|---|
| Access | Public |
| InherentEntitlements | X |
| InherentPermissions | X |
Methods
CreateException
Creates an exception with the specified error code and message. The exception is collectible if the errors are currently being collected.
procedure CreateException(RestClientException: Enum "Rest Client Exception", ErrorMessage: Text): ErrorInfo
Parameters
| Name | Type | Description |
|---|---|---|
| RestClientException | Enum System.RestClient."Rest Client Exception" |
The error code for the exception. |
| ErrorMessage | Text |
The message for the exception. |
Returns
| Type | Description |
|---|---|
| ErrorInfo |
The exception with the specified error code and message. |
CreateException
Creates an exception with the specified error code, message, and collectible flag.
procedure CreateException(RestClientException: Enum "Rest Client Exception", ErrorMessage: Text, Collectible: Boolean): ErrorInfo
Parameters
| Name | Type | Description |
|---|---|---|
| RestClientException | Enum System.RestClient."Rest Client Exception" |
The error code for the exception. |
| ErrorMessage | Text |
The message for the exception. |
| Collectible | Boolean |
Whether the exception is collectible. |
Returns
| Type | Description |
|---|---|
| ErrorInfo |
The exception with the specified error code, message, and collectible flag. |
GetRestClientException
Gets the exception code from the error info.
procedure GetRestClientException(ErrInfo: ErrorInfo): Enum "Rest Client Exception"
Parameters
| Name | Type | Description |
|---|---|---|
| ErrInfo | ErrorInfo |
The error info of the exception. |
Returns
| Type | Description |
|---|---|
| Enum System.RestClient."Rest Client Exception" |
The exception code. |