public interface ThrowableType extends ClassType, Comparable<ThrowableType>, DelegatingElement
| Modifier and Type | Method and Description |
|---|---|
default boolean |
causeSetInConstructor()
Indicates whether or not the cause was set in the constructor.
|
Set<Parameter> |
constructionParameters()
The parameters needed to construct the throwable, if not using the default constructor.
|
boolean |
hasDefaultConstructor()
Checks to see the throwable has a default constructor.
|
boolean |
hasStringAndThrowableConstructor()
Checks to see if the throwable has a string and throwable (
Throwable(String, Throwable)) constructor. |
boolean |
hasStringConstructor()
Checks to see if the throwable has a string (
Throwable(String)) constructor. |
boolean |
hasThrowableAndStringConstructor()
Checks to see if the throwable has a throwable and string (
Throwable(Throwable, String)) constructor. |
boolean |
hasThrowableConstructor()
Checks to see if the throwable has a string and throwable (
Throwable(String, Throwable)) constructor. |
boolean |
isChecked()
Checks if the throwable is a checked exception.
|
String |
name()
Returns the qualified class name of the return type.
|
boolean |
useConstructionParameters()
Checks to see if the throwable has and can use a custom constructor.
|
isAssignableFrom, isSameAs, isSubtypeOfcompareToaccept, asType, getAnnotation, getAnnotationMirrors, getAnnotationsByType, getDelegate, getEnclosedElements, getEnclosingElement, getKind, getModifiers, getSimpleName, isAnnotatedWithboolean hasDefaultConstructor()
true if the throwable has a default constructor, otherwise false.boolean hasStringAndThrowableConstructor()
Throwable(String, Throwable)) constructor.true if the throwable has both a string and throwable constructor, otherwise false.boolean hasStringConstructor()
Throwable(String)) constructor.
If true, Throwable.initCause(Throwable) can be used to set the throwable.true if the throwable has a string constructor, otherwise false.boolean hasThrowableAndStringConstructor()
Throwable(Throwable, String)) constructor.true if the throwable has both a throwable and string constructor, otherwise false.boolean hasThrowableConstructor()
Throwable(String, Throwable)) constructor.true if the throwable has a throwable constructor, otherwise false.boolean useConstructionParameters()
true, the constructor parameters can be retrieved from the constructionParameters() method.true if the throwable has a custom constructor that can be used, otherwise false.default boolean causeSetInConstructor()
true if the cause was set in the constructor, false if the
Throwable.initCause(Throwable) should be executedSet<Parameter> constructionParameters()
boolean isChecked()
true is
returned, otherwise false.true if the throwable is a checked exception, otherwise false.String name()
Copyright © 2017 JBoss by Red Hat. All rights reserved.