IsType judges one error.
(flags ErrorType)
| 85 | |
| 86 | // IsType judges one error. |
| 87 | func (msg *Error) IsType(flags ErrorType) bool { |
| 88 | return (msg.Type & flags) > 0 |
| 89 | } |
| 90 | |
| 91 | // Unwrap returns the wrapped error, to allow interoperability with errors.Is(), errors.As() and errors.Unwrap() |
| 92 | func (msg Error) Unwrap() error { |