public class OAuth2ServiceException extends IOException
| Modifier and Type | Class and Description |
|---|---|
static class |
OAuth2ServiceException.Builder |
| Constructor and Description |
|---|
OAuth2ServiceException(String message) |
OAuth2ServiceException(String message,
Integer httpStatusCode)
Creates an exception.
|
| Modifier and Type | Method and Description |
|---|---|
static OAuth2ServiceException.Builder |
builder(String message)
Creates an exception.
|
Integer |
getHttpStatusCode()
Returns the HTTP status code of the failed OAuth2 service request or
0 e.g. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic OAuth2ServiceException(String message)
public static OAuth2ServiceException.Builder builder(String message)
message - the error messagepublic Integer getHttpStatusCode()
0 e.g. in case the service wasn't called at all.Copyright © 2021. All rights reserved.