org.metastatic.rsync
Class ListenerException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--org.metastatic.rsync.ListenerException
All Implemented Interfaces:
Serializable

public class ListenerException
extends Exception

Signals an exception raised by an @{link GeneratorListener}, @{link MatcherListener}, or @{link RebuilderListener}.

Listener exceptions may contain other exceptions (the "cause") and may be chained together if there are multiple failures accross multiple listeners.

See Also:
Serialized Form

Field Summary
protected  Throwable cause
           
protected  ListenerException next
           
 
Constructor Summary
ListenerException()
           
ListenerException(String msg)
           
ListenerException(Throwable cause)
           
ListenerException(Throwable cause, String msg)
           
 
Method Summary
 Throwable getCause()
          Gets the cause of this exception, or null if the cause is unknown.
 ListenerException getNext()
          Returns the next exception in this chain, or null if there are no other exceptions.
 Throwable initCause(Throwable cause)
          Sets the cause of this exception.
 void setNext(ListenerException next)
          Sets the next exception in this chain.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

next

protected ListenerException next

cause

protected Throwable cause
Constructor Detail

ListenerException

public ListenerException(Throwable cause)

ListenerException

public ListenerException(Throwable cause,
                         String msg)

ListenerException

public ListenerException(String msg)

ListenerException

public ListenerException()
Method Detail

getNext

public ListenerException getNext()
Returns the next exception in this chain, or null if there are no other exceptions.

Returns:
The next exception.

setNext

public void setNext(ListenerException next)
Sets the next exception in this chain.

Parameters:
next - The next exception.

getCause

public Throwable getCause()
Gets the cause of this exception, or null if the cause is unknown.

Overrides:
getCause in class Throwable
Returns:
The cause.

initCause

public Throwable initCause(Throwable cause)
Sets the cause of this exception.

Overrides:
initCause in class Throwable
Parameters:
cause - The cause of this exception.