org.apache.empire
Class EmpireException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.empire.EmpireException
- All Implemented Interfaces:
- java.io.Serializable
public final class EmpireException
- extends java.lang.RuntimeException
This exception type is used for all empire errors.
Exceptions will only be thrown if exceptions are enabled in the ErrorObject.
- See Also:
ErrorObject.setExceptionsEnabled(boolean)
,
Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
EmpireException
public EmpireException(ErrorObject errorObject)
- creates an empire exception from an error object.
- Parameters:
errorObject
-
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Throwable
getErrorType
public ErrorType getErrorType()
- The type of error that occurred
- Returns:
- the type of error
- See Also:
Errors
getErrorObject
public ErrorObject getErrorObject()
- Returns:
- the object that caused the error
Copyright © 2008-2009 Apache Software Foundation. All Rights Reserved.