org.jboss.solder.exception.control
Class ExceptionToCatch

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

public class ExceptionToCatch
extends java.lang.Object
implements java.io.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(java.lang.Throwable exception)
          Basic constructor without any qualifiers defined.
ExceptionToCatch(java.lang.Throwable exception, java.lang.annotation.Annotation... qualifiers)
          Constructor that adds qualifiers for the handler(s) to run.
 
Method Summary
 java.lang.Throwable getException()
           
 java.util.Set<java.lang.annotation.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(java.lang.Throwable exception,
                        java.lang.annotation.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(java.lang.Throwable exception)
Basic constructor without any qualifiers defined.

Parameters:
exception - Exception to handle.
Method Detail

getException

public java.lang.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 java.util.Set<java.lang.annotation.Annotation> getQualifiers()
Qualifiers with which the instance was created.

Returns:
Qualifiers with which the instance was created.


Copyright © 2008-2012 Seam Framework. All Rights Reserved.