Class MercadoPagoApiException
Exception thrown when the API response is unsuccessful.
Implements
Inherited Members
Namespace: MercadoPago.Error
Assembly: MercadoPago.dll
Syntax
public class MercadoPagoApiException : Exception, ISerializable
Constructors
| Edit this page View SourceMercadoPagoApiException(string, MercadoPagoResponse)
Initializes a new instance of the MercadoPagoApiException class.
Declaration
public MercadoPagoApiException(string message, MercadoPagoResponse response)
Parameters
Type | Name | Description |
---|---|---|
string | message | Message of the exception. |
MercadoPagoResponse | response | Response from API. |
Properties
| Edit this page View SourceApiError
The error response from API.
Declaration
public ApiError ApiError { get; set; }
Property Value
Type | Description |
---|---|
ApiError |
ApiResponse
Api response that caused the exception.
Declaration
public MercadoPagoResponse ApiResponse { get; }
Property Value
Type | Description |
---|---|
MercadoPagoResponse |
Message
Exception message.
Declaration
public override string Message { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
| Edit this page View SourceStatusCode
Status code returned by the API.
Declaration
public int? StatusCode { get; }
Property Value
Type | Description |
---|---|
int? |