public abstract class AdminException extends TeiidException
AdminException
is the base exception for the admin package. Many *Admin methods throw this
exception. Instances will be one of the concrete subtypes:
AdminComponentException
or AdminProcessingException
AdminException
s may contain multiple child exceptions. An example
of this could be when performing an admin action results in multiple failures. Admin
clients should be aware of this and use the hasMultiple()
method to
determine if they need to check the child exceptions.
code
Modifier and Type | Method and Description |
---|---|
void |
addChild(AdminException child)
Add a child
AdminException for a particular failure
if and action resulted in multiple failures. |
List<AdminException> |
getChildren()
Returns a non-null list of failures (
AdminException s), one for each
component that failed. |
boolean |
hasMultiple()
Determine whether this exception is representing
mutliple component failures.
|
getCode, getMessage, getOriginalType, setCode, setOriginalType
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public boolean hasMultiple()
true
iff this exception contains multiple
component failure exceptions.public List<AdminException> getChildren()
AdminException
s), one for each
component that failed.
The list will have members when hasMultiple()
returns true
.
public void addChild(AdminException child)
AdminException
for a particular failure
if and action resulted in multiple failures.child
- a specific failureCopyright © 2018 JBoss by Red Hat. All rights reserved.