@Typed public class ExceptionToCatchEvent extends Object implements Serializable
| Constructor and Description |
|---|
ExceptionToCatchEvent(Throwable exception)
Basic constructor without any qualifiers defined.
|
ExceptionToCatchEvent(Throwable exception,
Annotation... qualifiers)
Constructor that adds qualifiers for the handler(s) to run.
|
| Modifier and Type | Method and Description |
|---|---|
Throwable |
getException() |
Set<Annotation> |
getQualifiers()
Qualifiers with which the instance was created.
|
boolean |
isHandled()
Test to see if the exception has already been processed by an
ExceptionHandler. |
boolean |
isOptional() |
void |
setHandled(boolean handled)
Internal only.
|
void |
setOptional(boolean optional) |
public ExceptionToCatchEvent(Throwable exception, Annotation... qualifiers)
exception - Exception to handlequalifiers - qualifiers to use to narrow the handlers calledpublic ExceptionToCatchEvent(Throwable exception)
exception - Exception to handle.public Throwable getException()
public void setHandled(boolean handled)
handled - new valuepublic boolean isHandled()
ExceptionHandler.public Set<Annotation> getQualifiers()
public boolean isOptional()
public void setOptional(boolean optional)
Copyright © 2017 The Apache Software Foundation. All rights reserved.