public class FeatureNotEnabledException extends RuntimeException implements WithErrorResponse
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 |
---|---|
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
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.public ResponseWithErrorCode getErrorResponse()
WithErrorResponse
getErrorResponse
in interface WithErrorResponse
public String getFeatureName()
public String getSupportComponent()
Copyright © 2018 SAP SE. All rights reserved.