Skip to main content

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

AttributeTypeDescription
reasonstringThe 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

NameTypeDescription
reasonanyThe reason why the request was rejected.

Signature

def RejectRequest(
reason: string
) - > null

Parameters

NameTypeDescription
reasonstringThe detailed explanation or cause for rejecting the request, used to inform the caller why the operation was denied.