public class InvalidParameterException extends Exception implements WithErrorResponse
Constructor and Description |
---|
InvalidParameterException(String parameter)
Creates the exception given the optional invalid parameter.
|
InvalidParameterException(String parameter,
Throwable cause)
Creates the exception given the optional invalid parameter and cause.
|
Modifier and Type | Method and Description |
---|---|
ResponseWithErrorCode |
getErrorResponse()
Gets the response containing an HTTP error code.
|
String |
getParameter() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public InvalidParameterException(@Nullable String parameter)
parameter
- The invalid parameter.@Nonnull public ResponseWithErrorCode getErrorResponse()
getErrorResponse
in interface WithErrorResponse
Copyright © 2020 SAP SE. All rights reserved.