public interface IError
Java interface defines an error in a specific 'module' of the SAP CC software;
An error is identified uniquely thanks to a module name and a numeric code.
An error can:
arguments
comprehensive message that describes the error in plain text
cause error; Errors are linked one to another thanks to this causality.
| Modifier and Type | Interface and Description |
|---|---|
static class |
IError.ErrorType
This
enumeration defines the available types or errors, which can be:
Permanent error: this error is permanent; it will lead to a failure each time the process is called
Temporary error: this error is temporary; the process has to be called again later
Correction expected: this error is temporary; but will lead to a failure until correction has not been applied
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object[] |
getArguments()
Gets the arguments of the error.
|
IError |
getCause()
Gets the
cause error that relates to this error; This method returns null if the error has no root cause. |
int |
getCode()
Gets the numeric code of the error; With the module, it uniquely identifies the error.
|
java.lang.String |
getMessage()
Gets the comprehensive message for this error.
|
java.lang.String |
getModule()
Gets the software module where the error happened; With the numeric code, it uniquely identifies the error.
|
IError |
setCause(IError cause)
Sets the the
cause error relating to this error. |
java.lang.String getModule()
int getCode()
java.lang.Object[] getArguments()
Note
This method never returns null.
java.lang.String getMessage()
IError getCause()
cause error that relates to this error; This method returns null if the error has no root cause.cause error relating to this errorIError setCause(IError cause)
cause error relating to this error.cause - The cause error that relates to this error