public class ConfluenceRequestException
extends java.lang.Exception
| Constructor and Description |
|---|
ConfluenceRequestException(java.lang.Integer statusCode,
java.lang.String message)
This constructor creates a new instance using the given status code and message.
|
ConfluenceRequestException(java.lang.Integer statusCode,
java.lang.String message,
ErrorData data)
This constructor creates a new instance using the given status code, message and data.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<ErrorData> |
getData()
This method returns the data contained within the error response.
|
java.lang.Integer |
getStatusCode()
This method returns the HTTP status code returned with the error.
|
public ConfluenceRequestException(java.lang.Integer statusCode,
java.lang.String message)
statusCode - The HTTP status code of the error response.message - The message contained within the error response.public ConfluenceRequestException(java.lang.Integer statusCode,
java.lang.String message,
ErrorData data)
statusCode - The HTTP status code of the error response.message - The message contained within the error response.data - The data contained within the error response.public java.lang.Integer getStatusCode()
public java.util.Optional<ErrorData> getData()