2023-02-08 18:45:31 +01:00
|
|
|
package exerr
|
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
|
|
|
type ExErr struct {
|
|
|
|
UniqueID string `json:"uniqueID"`
|
|
|
|
|
|
|
|
Timestamp time.Time `json:"timestamp"`
|
|
|
|
Category ErrorCategory `json:"category"`
|
|
|
|
Severity ErrorSeverity `json:"severity"`
|
|
|
|
Type ErrorType `json:"type"`
|
|
|
|
|
|
|
|
Message string `json:"message"`
|
|
|
|
Caller string `json:"caller"`
|
|
|
|
|
2023-02-15 16:04:19 +01:00
|
|
|
OriginalError *ExErr
|
|
|
|
|
2023-02-08 18:45:31 +01:00
|
|
|
Meta MetaMap `json:"meta"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (ee ExErr) Error() string {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (ee ExErr) Unwrap() error {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (ee ExErr) Is(err error) bool {
|
|
|
|
|
|
|
|
}
|