org.oddjob.arooa
Class ArooaException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byorg.oddjob.arooa.ArooaException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ArooaConfigException, ArooaNoPropertyException, ArooaPropertyException

public class ArooaException
extends java.lang.RuntimeException

An exception used when creation fails.

See Also:
Serialized Form

Constructor Summary
ArooaException()
           
ArooaException(java.lang.String message)
           
ArooaException(java.lang.String message, java.lang.Throwable t)
           
ArooaException(java.lang.String msg, java.lang.Throwable cause, Location location)
          Constructs an exception with the given message and exception as a root cause and a location in a file.
ArooaException(java.lang.Throwable t)
           
ArooaException(java.lang.Throwable cause, Location location)
          Constructs an exception with the given exception as a root cause and a location in a file.
 
Method Summary
 java.lang.Throwable getException()
           
 Location getLocation()
          Returns the file location where the error occurred.
 void setLocation(Location location)
          Sets the file location where the error occurred.
 java.lang.String toString()
          Returns the location of the error and the error message.
 
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

ArooaException

public ArooaException()

ArooaException

public ArooaException(java.lang.String message)

ArooaException

public ArooaException(java.lang.String message,
                      java.lang.Throwable t)

ArooaException

public ArooaException(java.lang.Throwable t)

ArooaException

public ArooaException(java.lang.Throwable cause,
                      Location location)
Constructs an exception with the given exception as a root cause and a location in a file.

Parameters:
cause - The exception that might have caused this one. Should not be null.
location - The location in the xml file where the error occurred. Must not be null.

ArooaException

public ArooaException(java.lang.String msg,
                      java.lang.Throwable cause,
                      Location location)
Constructs an exception with the given message and exception as a root cause and a location in a file.

Parameters:
msg - A description of or information about the exception. Should not be null unless a cause is specified.
cause - The exception that might have caused this one. May be null.
location - The location in the xml file where the error occurred. Must not be null.
Method Detail

getException

public java.lang.Throwable getException()

toString

public java.lang.String toString()
Returns the location of the error and the error message.

Returns:
the location of the error and the error message

setLocation

public void setLocation(Location location)
Sets the file location where the error occurred.

Parameters:
location - The file location where the error occurred. Must not be null.

getLocation

public Location getLocation()
Returns the file location where the error occurred.

Returns:
the file location where the error occurred.