Package com.mercadopago.exceptions
Class MPApiException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.mercadopago.exceptions.MPApiException
-
- All Implemented Interfaces:
Serializable
public class MPApiException extends Exception
MPApiException class.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MPApiException(String message, MPResponse response)
MPApiException constructor.MPApiException(String message, Throwable cause, MPResponse response)
MPApiException constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MPResponse
getApiResponse()
int
getStatusCode()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
MPApiException
public MPApiException(String message, MPResponse response)
MPApiException constructor.- Parameters:
message
- messageresponse
- response
-
MPApiException
public MPApiException(String message, Throwable cause, MPResponse response)
MPApiException constructor.- Parameters:
message
- messagecause
- causeresponse
- response
-
-
Method Detail
-
getStatusCode
public int getStatusCode()
-
getApiResponse
public MPResponse getApiResponse()
-
-