Class OAuth2ServiceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
com.sap.cloud.security.xsuaa.client.OAuth2ServiceException
- All Implemented Interfaces:
Serializable
Exception thrown to signal issues during communication with OAuth2 server.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionOAuth2ServiceException(String message) OAuth2ServiceException(String message, Integer httpStatusCode) Creates an exception. -
Method Summary
Modifier and TypeMethodDescriptionCreates an exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
OAuth2ServiceException
-
OAuth2ServiceException
Creates an exception.- Parameters:
message- the error messagehttpStatusCode- the status code of the HTTP service request
-
-
Method Details
-
builder
Creates an exception.- Parameters:
message- the error message
-