~samwhited/paddle

paddle/error.go -rw-r--r-- 279 bytes
fa35a6a5Sam Whited paddle: add note about maintenance status 1 year, 7 months 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
}