errors.go 330 B

12345678910111213141516171819
  1. package scep
  2. // Error is an SCEP error type
  3. type Error struct {
  4. // Type ProbType
  5. // Detail string
  6. Err error
  7. Status int
  8. // Sub []*Error
  9. // Identifier *Identifier
  10. }
  11. // Error implements the error interface.
  12. func (e *Error) Error() string {
  13. // if e.Err == nil {
  14. // return e.Detail
  15. // }
  16. return e.Err.Error()
  17. }