/AWS1/CL_CWOVALIDATIONERROR¶
Represents a detailed validation error with message, reason, and field mapping for comprehensive error reporting.
CONSTRUCTOR¶
IMPORTING¶
Optional arguments:¶
iv_message TYPE /AWS1/CWOSTRING /AWS1/CWOSTRING¶
The error message describing the validation issue.
iv_reason TYPE /AWS1/CWOSTRING /AWS1/CWOSTRING¶
The reason code or category for the validation error.
it_fieldmap TYPE /AWS1/CL_CWOFIELDMAP_W=>TT_FIELDMAP TT_FIELDMAP¶
A mapping of field names to specific validation issues within the configuration.
Queryable Attributes¶
Message¶
The error message describing the validation issue.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_MESSAGE() |
Getter for MESSAGE, with configurable default |
ASK_MESSAGE() |
Getter for MESSAGE w/ exceptions if field has no value |
HAS_MESSAGE() |
Determine if MESSAGE has a value |
Reason¶
The reason code or category for the validation error.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_REASON() |
Getter for REASON, with configurable default |
ASK_REASON() |
Getter for REASON w/ exceptions if field has no value |
HAS_REASON() |
Determine if REASON has a value |
FieldMap¶
A mapping of field names to specific validation issues within the configuration.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_FIELDMAP() |
Getter for FIELDMAP, with configurable default |
ASK_FIELDMAP() |
Getter for FIELDMAP w/ exceptions if field has no value |
HAS_FIELDMAP() |
Determine if FIELDMAP has a value |
Public Local Types In This Class¶
Internal table types, representing arrays and maps of this class, are defined as local types:
TT_VALIDATIONERRORS¶
TYPES TT_VALIDATIONERRORS TYPE STANDARD TABLE OF REF TO /AWS1/CL_CWOVALIDATIONERROR WITH DEFAULT KEY
.