public class ApplicationException extends IfsException
throw new ApplicationException("ERRORONE:Customer &1 is invalid.", name);You can also indicate what caused this exception by adding the causing exception. Example:
catch (IOException e) { throw new ApplicationException(e, "ERRORONE:Customer &1 is invalid.", name); }ApplicationException (and it's subclasses) are the only IfsExceptions application code can catch.
APPLICATION_ERROR, CONNECTION_DESTROYED_ERROR, DATABASE_ERROR, ENCRYPTION_ERROR, error, LICENSE_VIOLATION_ERROR, MANUAL_DECISION, PARSE_ERROR, SECURITY_ERROR, SYSTEM_ERROR, TRANSACTION_ID_MISMATCH_ERROR, UNKNOWN, USER_ABORT, VALIDATION_ERROR
Constructor and Description |
---|
ApplicationException(FndTranslatableText msg,
java.lang.String... p1)
Create a new instance
|
ApplicationException(java.lang.String msg,
java.lang.String... p1)
Create a new instance
|
ApplicationException(java.lang.Throwable cause,
FndTranslatableText msg,
java.lang.String... p1)
Create an instance and add the exception causing this exception
|
ApplicationException(java.lang.Throwable cause,
java.lang.String msg,
java.lang.String... p1)
Create an instance and add the exception causing this exception
|
error, getExtraInfo, getMessage, getTranslationID, getType, runtimeError
public ApplicationException(FndTranslatableText msg, java.lang.String... p1)
msg
- error messagep1
- placeholder textspublic ApplicationException(java.lang.Throwable cause, FndTranslatableText msg, java.lang.String... p1)
cause
- the causing exceptionmsg
- error messagep1
- placeholder textspublic ApplicationException(java.lang.String msg, java.lang.String... p1)
msg
- error messagep1
- placeholder textspublic ApplicationException(java.lang.Throwable cause, java.lang.String msg, java.lang.String... p1)
cause
- the causing exceptionmsg
- error messagep1
- placeholder texts