Class BeanMisconfiguredException
Object
Throwable
Exception
org.anchoranalysis.core.exception.AnchorCheckedException
org.anchoranalysis.core.exception.friendly.AnchorFriendlyCheckedException
org.anchoranalysis.bean.exception.BeanMisconfiguredException
- All Implemented Interfaces:
Serializable,HasFriendlyErrorMessage
public class BeanMisconfiguredException extends AnchorFriendlyCheckedException
If a Bean is misconfigured.
e.g. missing a value that is required or with a value that violates the constraints of the bean-field
There should always be a sensible message, even if we nest another exception.
- Author:
- Owen Feehan
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description BeanMisconfiguredException(String message)Creates with a message only.BeanMisconfiguredException(String message, Throwable cause)Creates with a message and a cause. -
Method Summary
Methods inherited from class org.anchoranalysis.core.exception.friendly.AnchorFriendlyCheckedException
friendlyMessage, friendlyMessageHierarchy, friendlyMessageHierarchy, stackTraceMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
BeanMisconfiguredException
Creates with a message only.- Parameters:
message- the message.
-
BeanMisconfiguredException
Creates with a message and a cause.- Parameters:
message- the messagecause- the cause.
-