Class BeanMisconfiguredXMLException
Object
Throwable
Exception
org.anchoranalysis.core.exception.AnchorCheckedException
org.anchoranalysis.core.exception.combinable.AnchorCombinableException
org.anchoranalysis.bean.xml.exception.BeanMisconfiguredXMLException
- All Implemented Interfaces:
Serializable
public class BeanMisconfiguredXMLException extends AnchorCombinableException
A bean's XML is thrown when a bean has misconfigured XML.
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.
- Author:
- Owen Feehan
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description BeanMisconfiguredXMLException(String msg, Throwable cause)ConstructorBeanMisconfiguredXMLException(Throwable cause)Constructor -
Method Summary
Modifier and Type Method Description protected booleancanExceptionBeCombined(Throwable exception)protected booleancanExceptionBeSkipped(Throwable exception)protected StringcreateMessageForDescription(String description)Throwablesummarize()This summarize() option just looks for the most deep exception that can be 'combined' and takes its messageMethods inherited from class org.anchoranalysis.core.exception.combinable.AnchorCombinableException
combineDescriptionsRecursively, findMostDeepCombinableException, getDescription, hasNoCombinableNestedExceptionsMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
BeanMisconfiguredXMLException
Constructor- Parameters:
msg- the message we want to display to the user about the exceptioncause- what caused it
-
BeanMisconfiguredXMLException
Constructor- Parameters:
cause- what caused it
-
-
Method Details
-
canExceptionBeCombined
- Specified by:
canExceptionBeCombinedin classAnchorCombinableException
-
summarize
This summarize() option just looks for the most deep exception that can be 'combined' and takes its message- Specified by:
summarizein classAnchorCombinableException- Returns:
- an exception that summarizes this exception (and maybe some nested-exceptions)
-
canExceptionBeSkipped
- Specified by:
canExceptionBeSkippedin classAnchorCombinableException
-
createMessageForDescription
- Specified by:
createMessageForDescriptionin classAnchorCombinableException
-