SafeInitError
Bases: Exception
An exception that is raised when there is an error initializing the Lambda handler function.
Source code in safe_init/errors.py
class SafeInitError(Exception):
"""
An exception that is raised when there is an error initializing the Lambda handler function.
"""
SafeInitInitPhaseTimeoutWarning
Bases: ImportWarning
An exception that is raised when the init (import) phase of a Lambda function is executed more than once.
Source code in safe_init/errors.py
class SafeInitInitPhaseTimeoutWarning(ImportWarning):
"""
An exception that is raised when the init (import) phase of a Lambda function is executed more than once.
"""
SafeInitJsonSerializationWarning
Bases: TypeError
An exception that is raised when the Lambda handler result cannot be serialized to JSON.
Source code in safe_init/errors.py
class SafeInitJsonSerializationWarning(TypeError): # noqa: N818
"""
An exception that is raised when the Lambda handler result cannot be serialized to JSON.
"""
SafeInitMissingSentryWarning
Bases: ImportWarning
An exception that is raised when the Lambda handler does not initialize the Sentry SDK.
Source code in safe_init/errors.py
class SafeInitMissingSentryWarning(ImportWarning):
"""
An exception that is raised when the Lambda handler does not initialize the Sentry SDK.
"""
SafeInitTimeoutWarning
Bases: TimeoutError
An exception that is raised when the Lambda handler function times out.
Source code in safe_init/errors.py
class SafeInitTimeoutWarning(TimeoutError): # noqa: N818
"""
An exception that is raised when the Lambda handler function times out.
"""
traces: list[FunctionCallSummary] = [] # noqa: RUF012