Class OAuth2ServiceException.Builder
java.lang.Object
com.sap.cloud.security.xsuaa.client.OAuth2ServiceException.Builder
- Enclosing class:
- OAuth2ServiceException
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()withHeaders(String... headers) withResponseBody(String responseBody) withStatusCode(int httpStatusCode) Parameterizes the Exception with an HTTP status code.
-
Constructor Details
-
Builder
-
-
Method Details
-
withStatusCode
Parameterizes the Exception with an HTTP status code.- Parameters:
httpStatusCode- the http status code- Returns:
- the builder
-
withUri
-
withResponseBody
-
withHeaders
-
build
-