org.apache.empire
Class EmpireException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by 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

Constructor Summary
EmpireException(ErrorObject errorObject)
          creates an empire exception from an error object.
 
Method Summary
 ErrorObject getErrorObject()
           
 ErrorType getErrorType()
          The type of error that occurred
 java.lang.String toString()
           
 
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
 

Constructor Detail

EmpireException

public EmpireException(ErrorObject errorObject)
creates an empire exception from an error object.

Parameters:
errorObject -
Method Detail

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.