Skip to content

/AWS1/CL_SFNMOCKERROROUTPUT

A JSON object that contains a mocked error.

CONSTRUCTOR

IMPORTING

Optional arguments:

iv_error TYPE /AWS1/SFNSENSITIVEERROR /AWS1/SFNSENSITIVEERROR

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

iv_cause TYPE /AWS1/SFNSENSITIVECAUSE /AWS1/SFNSENSITIVECAUSE

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


Queryable Attributes

error

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

Accessible with the following methods

Method Description
GET_ERROR() Getter for ERROR, with configurable default
ASK_ERROR() Getter for ERROR w/ exceptions if field has no value
HAS_ERROR() Determine if ERROR has a value

cause

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

Accessible with the following methods

Method Description
GET_CAUSE() Getter for CAUSE, with configurable default
ASK_CAUSE() Getter for CAUSE w/ exceptions if field has no value
HAS_CAUSE() Determine if CAUSE has a value