|
||||||||||
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
org.apache.empire.exceptions.EmpireException
public class EmpireException
This exception type is used for all empire errors.
Constructor Summary | |
---|---|
protected |
EmpireException(ErrorType errType,
String[] params)
Constructor for derived classes |
protected |
EmpireException(ErrorType errType,
String[] params,
Throwable cause)
Constructor for derived classes |
Method Summary | |
---|---|
static String |
formatErrorMessage(ErrorType errType,
String pattern,
String[] params)
|
String[] |
getErrorParams()
The message parameters for the message. |
ErrorType |
getErrorType()
The type of error that occurred |
protected void |
log()
log the error (info must be enabled) |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected EmpireException(ErrorType errType, String[] params, Throwable cause)
errType
- params
- cause
- protected EmpireException(ErrorType errType, String[] params)
errType
- params
- Method Detail |
---|
public static String formatErrorMessage(ErrorType errType, String pattern, String[] params)
protected void log()
public ErrorType getErrorType()
ErrorType
public String[] getErrorParams()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |