errors.go 222 B

123456789101112
  1. package scep
  2. // Error is an SCEP error type
  3. type Error struct {
  4. Message string `json:"message"`
  5. Status int `json:"-"`
  6. }
  7. // Error implements the error interface.
  8. func (e *Error) Error() string {
  9. return e.Message
  10. }