Class NamedFeatureCalculateException
Object
Throwable
Exception
AnchorCheckedException
AnchorFriendlyCheckedException
NamedFeatureCalculateException
- All Implemented Interfaces:
Serializable
,HasFriendlyErrorMessage
An exception that occurs when a feature fails to successfully calculate.
The feature may optionally have a name associated with it, to help identify it to the user.
- Author:
- Owen Feehan
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates with a calculation error that doesn't pertain to any particular feature.NamedFeatureCalculateException
(String message) Creates with a general failure message that doesn't pertain to any particular feature.NamedFeatureCalculateException
(String featureName, String message) Creates with a failure message associated with a particular feature. -
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
-
NamedFeatureCalculateException
Creates with a general failure message that doesn't pertain to any particular feature.- Parameters:
message
- the message.
-
NamedFeatureCalculateException
Creates with a calculation error that doesn't pertain to any particular feature.- Parameters:
cause
- reason for failure.
-
NamedFeatureCalculateException
Creates with a failure message associated with a particular feature.- Parameters:
featureName
- a name to describe the feature whose calculation failed.message
- the reason for failure.
-
-
Method Details
-
dropKey
Removes any feature-name from the exception.- Returns:
- a newly-created similar exception, but lacking any identifier for which feature caused the exception.
-