public class EmpireException extends RuntimeException
Modifier | Constructor and Description |
---|---|
protected |
EmpireException(ErrorType errType,
String[] params)
Constructor for derived classes
|
protected |
EmpireException(ErrorType errType,
String[] params,
Throwable cause)
Constructor for derived classes
|
Modifier and Type | Method and Description |
---|---|
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)
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
protected EmpireException(ErrorType errType, String[] params, Throwable cause)
errType
- params
- cause
- public static String formatErrorMessage(ErrorType errType, String pattern, String[] params)
protected void log()
public ErrorType getErrorType()
ErrorType
public String[] getErrorParams()
Copyright © 2008–2015 Apache Software Foundation. All rights reserved.