public class BeanMisconfiguredXMLException extends AnchorCombinableException
As these exceptions tend to get nested inside each other, we need to eventually combine them, so that only the final-most errored bean is displayed to the user.
Constructor and Description |
---|
BeanMisconfiguredXMLException(String msg,
Throwable cause)
Constructor
|
BeanMisconfiguredXMLException(Throwable cause)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
canExceptionBeCombined(Throwable exception)
Can another exception be combined with this exception?
|
protected boolean |
canExceptionBeSkipped(Throwable exception)
Can another exception be skipped, when we combine with the current exception?
|
protected String |
createMessageForDescription(String description)
Creates a message for the exception from the description.
|
Throwable |
summarize()
This summarize() option just looks for the most deep exception that can be 'combined' and
takes its message
|
combineDescriptionsRecursively, findMostDeepCombinableException, getDescription, hasNoCombinableNestedExceptions
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public BeanMisconfiguredXMLException(String msg, Throwable cause)
msg
- the message we want to display to the user about the exceptioncause
- what caused itpublic BeanMisconfiguredXMLException(Throwable cause)
cause
- what caused itprotected boolean canExceptionBeCombined(Throwable exception)
AnchorCombinableException
canExceptionBeCombined
in class AnchorCombinableException
exception
- the other exception to check if it can be combined.public Throwable summarize()
summarize
in class AnchorCombinableException
protected boolean canExceptionBeSkipped(Throwable exception)
AnchorCombinableException
canExceptionBeSkipped
in class AnchorCombinableException
exception
- the other exception to check if it can be skipped.protected String createMessageForDescription(String description)
AnchorCombinableException
createMessageForDescription
in class AnchorCombinableException
description
- either a single description, or a combined descriptionCopyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.