You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
330 B
Go
20 lines
330 B
Go
4 years ago
|
package scep
|
||
|
|
||
|
// Error is an SCEP error type
|
||
|
type Error struct {
|
||
|
// Type ProbType
|
||
|
// Detail string
|
||
|
Err error
|
||
|
Status int
|
||
|
// Sub []*Error
|
||
|
// Identifier *Identifier
|
||
|
}
|
||
|
|
||
|
// Error implements the error interface.
|
||
|
func (e *Error) Error() string {
|
||
|
// if e.Err == nil {
|
||
|
// return e.Detail
|
||
|
// }
|
||
|
return e.Err.Error()
|
||
|
}
|