PaymongoErrorCodes class

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.

Constructors

PaymongoErrorCodes({String? code, String? details, 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.
const
PaymongoErrorCodes.fromJson(String 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.
factory
PaymongoErrorCodes.fromMap(Map<String, dynamic> map)
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.
factory

Properties

code String?
A string representation of a single error. This can be used as a reference in conditional statements if you prefer to use your own error message instead of using the detail error attribute.
final
details String?
A developer-friendly error message of a single error. This can also be used as an error message to inform your end users of the issue that they encountered. However, if you feel that the detail does not match your needs, you can utilize the code attribute to provide a more suitable, custom error message.
final
hashCode int
The hash code for this object.
no setterinherited
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source PaymongoErrorSource?
PaymongoErrorSource data
final
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited

Methods

copyWith({String? code, String? details, PaymongoErrorSource? source}) PaymongoErrorCodes
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited