Skip to content

MockErrorOutput

Source code in docs_src/capo_sfn/types/mock_error_output.py
class MockErrorOutput(TypedDict, closed=True):
    error: NotRequired["capo_sfn.types.sensitive_error.SensitiveError"]
    """<p>A string denoting the error code of the exception thrown when invoking the tested state. This field is required if <code>mock.errorOutput</code> is specified.</p>"""
    cause: NotRequired["capo_sfn.types.sensitive_cause.SensitiveCause"]
    """<p>A string containing the cause of the exception thrown when executing the state's logic.</p>"""

cause instance-attribute

cause: NotRequired[SensitiveCause]

A string containing the cause of the exception thrown when executing the state's logic.

error instance-attribute

error: NotRequired[SensitiveError]

A string denoting the error code of the exception thrown when invoking the tested state. This field is required if mock.errorOutput is specified.