public class PayPalRESTException extends Exception
| Constructor and Description |
|---|
PayPalRESTException(String message) |
PayPalRESTException(String message,
Throwable throwable) |
PayPalRESTException(Throwable throwable) |
| Modifier and Type | Method and Description |
|---|---|
protected static PayPalRESTException |
createFromHttpErrorException(HttpErrorException httpErrorException)
Utility method that creates a
PayPalRESTException object from HttpErrorException. |
Error |
getDetails() |
int |
getResponsecode() |
void |
setDetails(Error details) |
void |
setResponsecode(int responsecode) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic PayPalRESTException(String message)
public PayPalRESTException(Throwable throwable)
public int getResponsecode()
public void setResponsecode(int responsecode)
public Error getDetails()
public void setDetails(Error details)
protected static PayPalRESTException createFromHttpErrorException(HttpErrorException httpErrorException)
PayPalRESTException object from HttpErrorException.
if HttpErrorException contains 400 response code, error response is converted to Error object.httpErrorException - HttpErrorException thrown from API callCopyright © 2015. All Rights Reserved.