Package org.apache.empire.exceptions
Class EmpireException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.empire.exceptions.EmpireException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BeanException,BeanIncompatibleException,DatabaseNotOpenException,EmpireFileException,EmpireSQLException,InternalException,InvalidArgumentException,InvalidKeyException,InvalidOperationException,InvalidPropertyException,InvalidValueException,ItemExistsException,ItemNotFoundException,NoPrimaryKeyException,NotImplementedException,NotSupportedException,ObjectNotValidException,OperationFailedException,PropertyReadOnlyException,QueryNoResultException,RecordException,UnexpectedReturnValueException,UnknownBeanTypeException,UnsupportedTypeException,UserLevelException,ValueConversionException
This exception type is used for all empire errors.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classExceptionMessageFormatter returns a message text for an Exception from a given pattern and parameters -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedEmpireException(ErrorType errType, String[] params) Constructor for derived classesprotectedEmpireException(ErrorType errType, String[] params, Throwable cause) Constructor for derived classes -
Method Summary
Modifier and TypeMethodDescriptionstatic StringformatErrorMessage(ErrorType errType, String pattern, String[] params) String[]The message parameters for the message.The type of error that occurredprotected voidlog()log the error (info must be enabled)static voidsetMessageFormatter(EmpireException.ExceptionMessageFormatter messageFormatter) Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
EmpireException
Constructor for derived classes- Parameters:
errType-params-cause-
-
EmpireException
Constructor for derived classes- Parameters:
errType-params-
-
-
Method Details
-
getMessageFormatter
-
setMessageFormatter
-
formatErrorMessage
-
log
protected void log()log the error (info must be enabled) -
getErrorType
The type of error that occurred- Returns:
- the type of error
- See Also:
-
getErrorParams
The message parameters for the message.- Returns:
- the parameter array
-