2021-02-27 00:34:50 +01:00
|
|
|
package scep
|
|
|
|
|
|
|
|
// Error is an SCEP error type
|
|
|
|
type Error struct {
|
2021-03-05 12:40:42 +01:00
|
|
|
Message string `json:"message"`
|
|
|
|
Status int `json:"-"`
|
2021-02-27 00:34:50 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// Error implements the error interface.
|
|
|
|
func (e *Error) Error() string {
|
2021-03-05 12:40:42 +01:00
|
|
|
return e.Message
|
2021-02-27 00:34:50 +01:00
|
|
|
}
|