public class NamedFeatureCalculateException extends AnchorFriendlyCheckedException
The feature may optionally have a name associated with it, to help identify it to the user.
Constructor and Description |
---|
NamedFeatureCalculateException(Exception cause)
Creates 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.
|
Modifier and Type | Method and Description |
---|---|
FeatureCalculationException |
dropKey()
Removes any feature-name from the exception.
|
friendlyMessage, friendlyMessageHierarchy, friendlyMessageHierarchy, stackTrace
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public NamedFeatureCalculateException(String message)
message
- the message.public NamedFeatureCalculateException(Exception cause)
cause
- reason for failure.public FeatureCalculationException dropKey()
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.