public class FeatureNotEnabledException extends RuntimeException implements WithErrorResponse
Modifier and Type | Field and Description |
---|---|
protected String |
featureName |
protected String |
supportComponent |
Constructor and Description |
---|
FeatureNotEnabledException(String featureName)
Initiates the exception for the given feature name.
|
FeatureNotEnabledException(String featureName,
String supportComponent)
Initiates the exception for the given feature name and support component name.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
ResponseWithErrorCode |
getErrorResponse()
Gets the response containing an HTTP error code.
|
String |
getFeatureName() |
String |
getSupportComponent() |
int |
hashCode() |
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
protected final String featureName
protected final String supportComponent
public FeatureNotEnabledException(String featureName)
featureName
- The name of the disabled feature.public FeatureNotEnabledException(String featureName, @Nullable String supportComponent)
featureName
- The name of the disabled feature.supportComponent
- The support component name for the ticketing system.@Nonnull public ResponseWithErrorCode getErrorResponse()
WithErrorResponse
getErrorResponse
in interface WithErrorResponse
public String getFeatureName()
public String getSupportComponent()
protected boolean canEqual(Object other)
Copyright © 2020 SAP SE. All rights reserved.