Class CreateException
Object
Throwable
Exception
AnchorCheckedException
AnchorFriendlyCheckedException
CreateException
- All Implemented Interfaces:
Serializable
,HasFriendlyErrorMessage
A generic exception that be thrown when the creation of a new object fails.
- Author:
- Owen Feehan
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreateException
(String message) Creates with a message, but without a cause.CreateException
(String message, AnchorCombinableException cause) Creates with a message, and a combinable-exception as a cause.CreateException
(String message, HasFriendlyErrorMessage cause) Creates with a message, and a cause with a user-friendly error message.CreateException
(Throwable cause) Creates with a cause, but without a message. -
Method Summary
Methods inherited from class org.anchoranalysis.core.exception.friendly.AnchorFriendlyCheckedException
friendlyMessage, friendlyMessageHierarchy, friendlyMessageHierarchy, stackTrace
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CreateException
Creates with a message, but without a cause.- Parameters:
message
- the message.
-
CreateException
Creates with a cause, but without a message.- Parameters:
cause
- the cause.
-
CreateException
Creates with a message, and a cause with a user-friendly error message.- Parameters:
message
- the messagecause
- the cause with a user-friendly error message.
-
CreateException
Creates with a message, and a combinable-exception as a cause.- Parameters:
message
- the messagecause
- a combinable-exception as a cause.
-