error.go 245 B

123456789101112
  1. package errors
  2. // Error ...
  3. type Error struct {
  4. Message string `json:"message"`
  5. Args map[string]interface{} `json:"args"`
  6. Code int `json:"code"`
  7. }
  8. func (e Error) Error() string {
  9. return e.Message
  10. }