github.com/billybanfield/evergreen@v0.0.0-20170525200750-eeee692790f7/apiv3/error.go (about)

     1  package apiv3
     2  
     3  // APIError implements the Error() interface
     4  type APIError struct {
     5  	StatusCode int    `json:"status"`
     6  	Message    string `json:"error"`
     7  }
     8  
     9  func (e APIError) Error() string {
    10  	return e.Message
    11  }