public class FeatureNotEnabledException extends RuntimeException implements WithErrorResponse
Modifier and Type | Field and Description |
---|---|
protected String |
featureName
The feature name.
|
protected String |
supportComponent
The support component.
|
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()
The feature name.
|
String |
getSupportComponent()
The support component.
|
int |
hashCode() |
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public FeatureNotEnabledException(@Nullable String featureName)
featureName
- The name of the disabled feature.public FeatureNotEnabledException(@Nullable 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
Copyright © 2021 SAP SE. All rights reserved.