public class UnlicensedFeatureException extends LocalizedException
Contains a "feature id" describing what was not licensed. It is free form text that should make clear what was not allowed.
The message of the exception is localized, and contains the feature id.
Constructor and Description |
---|
UnlicensedFeatureException(java.lang.String featureId)
Instantiate a exception for the given unlicensed feature.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFeatureId() |
getMessage
public UnlicensedFeatureException(java.lang.String featureId)
featureId
- a string that will be included in the error message to represent the unlicensed feature. Should
be identifiable and hopefully make clear exactly what isn't licensed.