Package org.apache.empire.exceptions
Class BeanException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.empire.exceptions.EmpireException
org.apache.empire.exceptions.BeanException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BeanInstantiationException,BeanMethodInvokeException,BeanPropertyGetException,BeanPropertySetException
BeanException
Base class for bean related exceptions
- Author:
- doebele
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.empire.exceptions.EmpireException
EmpireException.ExceptionMessageFormatter -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBeanException(ErrorType errType, String[] params, Throwable cause) Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected static ExceptionReturns the root cause of a ReflectiveOperationException such as InvocationTargetExceptionprotected static StringgetTypeName(Object object) protected voidlog()log the errorMethods inherited from class org.apache.empire.exceptions.EmpireException
formatErrorMessage, getErrorParams, getErrorType, getMessageFormatter, setMessageFormatterMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
BeanException
Constructor- Parameters:
errType- the error typeparams- the error paramscause- the causing exception
-
-
Method Details
-
getCause
Returns the root cause of a ReflectiveOperationException such as InvocationTargetException- Parameters:
e- the ReflectiveOperationException- Returns:
- the causing exception
-
getTypeName
-
log
protected void log()log the error- Overrides:
login classEmpireException
-