Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
Comments added on the APIError struct.
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabien Herfray committed Nov 18, 2015
1 parent 5d5605a commit d0d9f0c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions api_errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@ import "fmt"

// APIError defines the format of Zest API errors.
type APIError struct {
Status int `json:"status"`
// The status code.
Status int `json:"status"`
// The description of the API error.
Description string `json:"description"`
Raw string `json:"raw"`
ErrorCode string `json:"errorCode"`
// A raw description of what triggered the API error.
Raw string `json:"raw"`
// The token uniquely identifying the API error.
ErrorCode string `json:"errorCode"`
}

func (e APIError) Error() string {
Expand Down

0 comments on commit d0d9f0c

Please sign in to comment.