public class EmpireException extends RuntimeException
Modifier and Type | Class and Description |
---|---|
static class |
EmpireException.ExceptionMessageFormatter
ExceptionMessageFormatter
returns a message text for an Exception from a given pattern and parameters
|
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
|
static EmpireException.ExceptionMessageFormatter |
getMessageFormatter() |
protected void |
log()
log the error (info must be enabled)
|
static void |
setMessageFormatter(EmpireException.ExceptionMessageFormatter messageFormatter) |
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 EmpireException.ExceptionMessageFormatter getMessageFormatter()
public static void setMessageFormatter(EmpireException.ExceptionMessageFormatter messageFormatter)
public static String formatErrorMessage(ErrorType errType, String pattern, String[] params)
protected void log()
public ErrorType getErrorType()
ErrorType
public String[] getErrorParams()
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.