public class BitlyException extends RuntimeException
| Constructor and Description |
|---|
BitlyException(String message)
Constructor that takes an error message.
|
BitlyException(String method,
int status,
String reason,
ErrorResponse error)
Constructor that takes a method, status and reason.
|
| Modifier and Type | Method and Description |
|---|---|
ErrorResponse |
getErrorResponse()
Returns the error response.
|
String |
getMethod()
Returns the HTTP method.
|
String |
getReasonPhrase()
Returns the HTTP reason phrase.
|
int |
getStatus()
Returns the HTTP status code.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic BitlyException(String method, int status, String reason, ErrorResponse error)
method - The HTTP methodstatus - The HTTP status codereason - The HTTP reason phraseerror - The error responsepublic BitlyException(String message)
message - The error messagepublic String getMethod()
public int getStatus()
public String getReasonPhrase()
public ErrorResponse getErrorResponse()
Copyright © 2020. All rights reserved.