Skip to content

Runtime Errors

Security violations and reference errors.


ReferenceNotFoundException

Python
ReferenceNotFoundException(variable_name: Optional[str] = None, message: Optional[str] = None)

Exception raised when a required variable or value is not found.

SecurityViolationException

Python
SecurityViolationException(message: Optional[str] = None)

Exception raised when a security violation is detected.

GuardedResponseTrigger

Python
GuardedResponseTrigger(response)

Custom exception to signal early exit from the Lambda function. Holds response internally in response attribute. Reraise until to level when get_response() can be called

get_response

Python
get_response()

Retrieves the response associated with this exception.

RETURNS DESCRIPTION
dict

The response dictionary associated with this exception.