public class PayPalRESTException
extends java.lang.Exception
| Constructor and Description |
|---|
PayPalRESTException(java.lang.String message) |
PayPalRESTException(java.lang.String message,
java.lang.Throwable throwable) |
PayPalRESTException(java.lang.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) |
java.lang.String |
toString() |
public PayPalRESTException(java.lang.String message)
public PayPalRESTException(java.lang.String message,
java.lang.Throwable throwable)
public PayPalRESTException(java.lang.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 callpublic java.lang.String toString()
toString in class java.lang.Throwable