org.jboss.solder.exception.control
Class ExceptionToCatch

java.lang.Object
  extended by org.jboss.solder.exception.control.ExceptionToCatch
All Implemented Interfaces:
Serializable

public class ExceptionToCatch
extends Object
implements Serializable

Entry point event into the Catch system. This object is nearly immutable, the only mutable portion is the handled flag.

See Also:
Serialized Form

Constructor Summary
ExceptionToCatch()
          Basic constructor
ExceptionToCatch(Throwable exception)
          Basic constructor without any qualifiers defined.
ExceptionToCatch(Throwable exception, Annotation... qualifiers)
          Constructor that adds qualifiers for the handler(s) to run.
 
Method Summary
 Throwable getException()
           
 Set<Annotation> getQualifiers()
          Qualifiers with which the instance was created.
 boolean isHandled()
          Test to see if the exception has been handled via Solder Catch.
protected  void setHandled(boolean handled)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionToCatch

public ExceptionToCatch()
Basic constructor


ExceptionToCatch

public ExceptionToCatch(Throwable exception,
                        Annotation... qualifiers)
Constructor that adds qualifiers for the handler(s) to run. Typically only integrators will be using this constructor.

Parameters:
exception - Exception to handle
qualifiers - qualifiers to use to narrow the handlers called

ExceptionToCatch

public ExceptionToCatch(Throwable exception)
Basic constructor without any qualifiers defined.

Parameters:
exception - Exception to handle.
Method Detail

getException

public Throwable getException()

setHandled

protected void setHandled(boolean handled)

isHandled

public boolean isHandled()
Test to see if the exception has been handled via Solder Catch.

Returns:
test if the exception has been through Solder Catch handling.

getQualifiers

public Set<Annotation> getQualifiers()
Qualifiers with which the instance was created.

Returns:
Qualifiers with which the instance was created.


Copyright © 2011 Seam Framework. All Rights Reserved.