Throw

Complete execution of an assembly with an error result

Table 1. Supported parameters
Parameter Required Data type Details
error No object The type of the error to throw. Re-throw current error if missing.
Table 2. Options for error
Parameter Required Data type Details
BadRequestError No enum (of string) Indicates an invalid or malformed request, typically due to incorrect input or parameters
ConnectionError Yes object Represents a failure or interruption in network or service connectivity during execution
CustomError Yes object Allows defining a user-specific error type for custom handling scenarios
LimitExceededError Yes object Triggered when a predefined resource or usage limit is surpassed
ValidateError Yes object Occurs when data validation fails against expected rules or schema constraints
Table 3. Nested properties inside ConnectionError
Parameter Required Data type Details
cause Yes string The cause of the connection failure
causeType No enum (of string) Plain string value
Table 4. Nested properties inside CustomError
Parameter Required Data type Details
message Yes string A message for the failure. It is returned as a body of the response
messageType No object Indication of how message string is interpreted
status Yes integer

Status code for the failure. It is return as a codeStatus of the response. Value must be greater or equal to 0.0

Table 5. Nested properties inside LimitExceededError
Parameter Required Data type Details
name Yes string The name of the limit causing the failure
nameType No object Indication of how name string is interpreted
Table 6. Nested properties inside ValidateError
Parameter Required Data type Details
message Yes string The message with the failure details
messageType No object Indication of how message string is interpreted