RejectRequest
This class is a custom exception used to signal that a request has been rejected. It captures and stores a specific reason for the rejection to provide context during error handling.
Attributes
| Attribute | Type | Description |
|---|---|---|
| reason | string | The explanation or justification for why the request was rejected, typically used to provide feedback to the caller. |
Constructor
Signature
def RejectRequest(
reason: any
) - > null
Parameters
| Name | Type | Description |
|---|---|---|
| reason | any | The reason why the request was rejected. |
Signature
def RejectRequest(
reason: string
) - > null
Parameters
| Name | Type | Description |
|---|---|---|
| reason | string | The detailed explanation or cause for rejecting the request, used to inform the caller why the operation was denied. |