3pl/partnerapi/onpoint/error.go

15 lines
259 B
Go
Raw Normal View History

2022-09-16 10:43:13 +00:00
package onpoint
import "fmt"
// Error ...
type Error struct {
Message string `json:"message"`
Status string `json:"status"`
}
// Error ...
func (e Error) Error() string {
return fmt.Sprintf("onpoint_err: status %s, message: %s", e.Status, e.Message)
}