Class BeanDuplicateException
Object
Throwable
Exception
RuntimeException
AnchorRuntimeException
AnchorFriendlyRuntimeException
BeanDuplicateException
- All Implemented Interfaces:
Serializable
,HasFriendlyErrorMessage
An exception occurs when the duplication of a bean fails.
We keep this unchecked, as if a bean is properly configured it should not be thrown.
As we already do checks to see if a bean is properly configured it should never (or almost never) occur.
We don't want to make needlessly dirty code, as bean duplication occurs, so we keep it as a runtime exception.
- Author:
- Owen Feehan
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBeanDuplicateException
(String message) Creates with a message only.BeanDuplicateException
(String message, Throwable cause) Creates with a message and cause.BeanDuplicateException
(Throwable cause) Creates with a cause only. -
Method Summary
Methods inherited from class org.anchoranalysis.core.exception.friendly.AnchorFriendlyRuntimeException
friendlyMessage, friendlyMessageHierarchy, friendlyMessageHierarchy
Methods inherited from class org.anchoranalysis.core.exception.AnchorRuntimeException
toString
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
BeanDuplicateException
Creates with a message only.- Parameters:
message
- the message.
-
BeanDuplicateException
Creates with a cause only.- Parameters:
cause
- the cause.
-
BeanDuplicateException
Creates with a message and cause.- Parameters:
message
- the message.cause
- the cause.
-