|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
com.sap.tc.mobile.exception.standard.SAPIllegalArgumentException
public class SAPIllegalArgumentException
Wrapper class for IllegalArgumentException.
| Field Summary | |
|---|---|
static MsgObject |
NOT_SERIALIZABLE
Not able to serialize field of type {0}. |
static MsgObject |
PARAMETER_FORBIDDEN_CHARACTER
The parameter {0} has the value {1}, and it contains the character {2} which is not allowed. |
static MsgObject |
PARAMETER_LENGTH_TOO_HIGH
The length of parameter {0} is {1} characters, but allowed maximum is {2} characters (value {3}). |
static MsgObject |
PARAMETER_LENGTH_TOO_LOW
The length of parameter {0} is {1} characters, but allowed minimum is {2} characters (value {3}). |
static MsgObject |
PARAMETER_MALFORMED
Argument {0} (Type {1}) is malformed. |
static MsgObject |
PARAMETER_NULL
Parameter {0} must not be null. |
static MsgObject |
PARAMETER_OUT_OF_RANGE
The parameter {0} has the value {1}, but this is not part of the allowed values {2}. |
static MsgObject |
PARAMETER_TOO_HIGH
The value of parameter {0} is {1}, but maximum is {2}. |
static MsgObject |
PARAMETER_TOO_LOW
The value of parameter {0} is {1}, but minimum is {2}. |
static MsgObject |
PARAMETER_TOO_MANY
Too many arguments. |
static MsgObject |
PARAMETER_WRONG_TYPE
Type {1} of argument {0} is wrong. |
static MsgObject |
PROPERTY_FORBIDDEN_CHARACTER
The property {0} has the value {1}, and it contains the character {2} which is not allowed. |
static MsgObject |
PROPERTY_LENGTH_TOO_HIGH
The length of property {0} is {1} characters, but allowed maximum is {2} characters (value {3}). |
static MsgObject |
PROPERTY_LENGTH_TOO_LOW
The length of property {0} is {1} characters, but allowed minimum is {2} characters (value {3}). |
static MsgObject |
PROPERTY_NOT_EXISTENT
The property {0} does not exist. |
static MsgObject |
PROPERTY_OUT_OF_RANGE
The property {0} has the value {1}, but this is not part of the allowed values {2}. |
static MsgObject |
PROPERTY_TOO_HIGH
The value of property {0} is {1}, but maximum is {2}. |
static MsgObject |
PROPERTY_TOO_LOW
The value of property {0} is {1}, but minimum is {2}. |
| Fields inherited from interface com.sap.tc.mobile.exception.IBaseException |
|---|
audit |
| Constructor Summary | |
|---|---|
SAPIllegalArgumentException(Location loc,
MsgObject msgObject)
Constructs an exception with the specified root cause, which caused this exception. |
|
SAPIllegalArgumentException(Location loc,
MsgObject msgObject,
java.lang.Object[] args)
Constructs an exception with the specified root cause, which caused this exception. |
|
SAPIllegalArgumentException(Location loc,
MsgObject msgObject,
java.lang.Object[] args,
java.lang.Throwable rootCause)
Constructs an exception with the specified root cause, which caused this exception. |
|
| Method Summary | |
|---|---|
java.lang.Throwable |
getCause()
Getter method for root cause. |
java.lang.String |
getLocalizedMessage()
Gets localized message. |
Location |
getLogLocation()
Getter method for logging location. |
java.lang.String |
getMessage()
|
java.lang.String |
getNestedLocalizedMessage()
Chains localized messages of the nested exceptions. |
java.lang.String |
getNestedStackTraceString()
Chains the stack trace information of nested exceptions. |
java.lang.String |
getStackTraceString()
Gets stack trace information of this exception only. |
java.lang.String |
getSystemStackTraceString()
Gets the stack information of this exception in respect of the current system environment. |
java.lang.Throwable |
initCause(java.lang.Throwable cause)
Initializes the cause of this exception to the specified value. |
void |
printStackTrace()
Prints this exception and its backtrace to the standard error stream. |
void |
printStackTrace(java.io.PrintStream s)
Prints this exception and its backtrace to the specified print stream. |
void |
printStackTrace(java.io.PrintWriter s)
Prints the action object and its backtrace to
the specified print writer. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final MsgObject PARAMETER_NULL
public static final MsgObject PARAMETER_TOO_LOW
public static final MsgObject PARAMETER_TOO_HIGH
public static final MsgObject PARAMETER_LENGTH_TOO_LOW
public static final MsgObject PARAMETER_LENGTH_TOO_HIGH
public static final MsgObject PARAMETER_FORBIDDEN_CHARACTER
public static final MsgObject PARAMETER_OUT_OF_RANGE
public static final MsgObject PARAMETER_TOO_MANY
public static final MsgObject PARAMETER_WRONG_TYPE
public static final MsgObject PARAMETER_MALFORMED
public static final MsgObject PROPERTY_NOT_EXISTENT
public static final MsgObject PROPERTY_TOO_LOW
public static final MsgObject PROPERTY_TOO_HIGH
public static final MsgObject PROPERTY_LENGTH_TOO_LOW
public static final MsgObject PROPERTY_LENGTH_TOO_HIGH
public static final MsgObject PROPERTY_FORBIDDEN_CHARACTER
public static final MsgObject PROPERTY_OUT_OF_RANGE
public static final MsgObject NOT_SERIALIZABLE
| Constructor Detail |
|---|
public SAPIllegalArgumentException(Location loc,
MsgObject msgObject)
loc - logging location which will be used in case of automatic tracing logging location.msgObject - message object.
public SAPIllegalArgumentException(Location loc,
MsgObject msgObject,
java.lang.Object[] args)
loc - logging location which will be used in case of automatic tracing logging location.msgObject - message object.args - arguments for message.
public SAPIllegalArgumentException(Location loc,
MsgObject msgObject,
java.lang.Object[] args,
java.lang.Throwable rootCause)
loc - logging location which will be used in case of automatic tracing logging location.msgObject - message object.args - arguments for message.rootCause - throwable object which caused this exception.| Method Detail |
|---|
public java.lang.Throwable initCause(java.lang.Throwable cause)
IBaseExceptionThis method can be called at most once. That means the cause can be specified only once.
initCause in interface IBaseExceptioninitCause in class java.lang.Throwablecause - the cause (which is saved for later retrieval by the
IBaseException.getCause() method). (A null value is
permitted, and indicates that the cause is nonexistent or
unknown.)
IBaseException.initCause(Throwable)public java.lang.Throwable getCause()
IBaseException
getCause in interface IBaseExceptiongetCause in class java.lang.ThrowableIBaseException.getCause()public java.lang.String getLocalizedMessage()
IBaseExceptionThe default locale and default time zone are used for localization.
These values have no effect if the finallyLocalize method has already been called.
getLocalizedMessage in interface IBaseExceptiongetLocalizedMessage in class java.lang.ThrowableIBaseException.getLocalizedMessage()public java.lang.String getNestedLocalizedMessage()
IBaseExceptionThe default locale and the default time zone are used for localization.
These values have no effect if the finallyLocalize method has already been called.
getNestedLocalizedMessage in interface IBaseExceptionIBaseException.getNestedLocalizedMessage()public java.lang.String getSystemStackTraceString()
getSystemStackTraceString in interface IBaseExceptionIBaseException.getSystemStackTraceString()public java.lang.String getStackTraceString()
IBaseExceptionThe stack traces of nested exceptions are not chained.
getStackTraceString in interface IBaseExceptionIBaseException.getStackTraceString()public java.lang.String getNestedStackTraceString()
IBaseExceptionThe caused stack trace is displayed first.
getNestedStackTraceString in interface IBaseExceptionIBaseException.getNestedStackTraceString()public void printStackTrace()
IBaseExceptionSystem.err.
printStackTrace in interface IBaseExceptionprintStackTrace in class java.lang.ThrowableIBaseException.printStackTrace()public void printStackTrace(java.io.PrintStream s)
IBaseException
printStackTrace in interface IBaseExceptionprintStackTrace in class java.lang.Throwables - PrintStream to use for outputIBaseException.printStackTrace(PrintStream)public void printStackTrace(java.io.PrintWriter s)
IBaseExceptionaction object and its backtrace to
the specified print writer.
printStackTrace in interface IBaseExceptionprintStackTrace in class java.lang.Throwables - PrintWriter to use for outputIBaseException.printStackTrace(PrintWriter)public java.lang.String getMessage()
getMessage in class java.lang.ThrowablegetLocalizedMessage()public Location getLogLocation()
If no location is specified, null is returned.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||