~samwhited/paddle

ref: 0ed0fbbe4b0028165538064d1f76450b0d2e56c0 paddle/error.go -rw-r--r-- 279 bytes
0ed0fbbeSam Whited paddle: add other supported currencies 3 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
package paddle

// Error can unmarshal the "error" field of an API response.
type Error struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

// Error implements the error interface for the Error type.
func (err Error) Error() string {
	return err.Message
}