PaymongoErrorCodes constructor

const PaymongoErrorCodes({
  1. String? code,
  2. String? details,
  3. PaymongoErrorSource? source,
})

PayMongo API is RESTful and uses conventional HTTP response codes to indicate the success or failure of API requests. The table below will help you identify the meaning and the implication of error responses. As a general rule of thumb: Codes in the 2xx range indicate success. Codes in the 4xx range indicate a failure from the given information (e.g. missing API keys, invalid parameters, failed transaction, etc.). Codes in the 5xx range mean that there's an unexpected error on the PayMongo servers. These shouldn't happen, but when they do, please inform us right away.

Implementation

const PaymongoErrorCodes({
  this.code,
  this.details,
  this.source,
});