|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.solder.exception.control.ExceptionToCatch
public class ExceptionToCatch
Entry point event into the Catch system. This object is nearly immutable, the only mutable portion is the handled flag.
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 |
---|
public ExceptionToCatch()
public ExceptionToCatch(Throwable exception, Annotation... qualifiers)
exception
- Exception to handlequalifiers
- qualifiers to use to narrow the handlers calledpublic ExceptionToCatch(Throwable exception)
exception
- Exception to handle.Method Detail |
---|
public Throwable getException()
protected void setHandled(boolean handled)
public boolean isHandled()
public Set<Annotation> getQualifiers()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |