(err error)
| 107 | } |
| 108 | |
| 109 | func GetKind(err error) string { |
| 110 | if cortexError, ok := err.(*Error); ok { |
| 111 | return cortexError.Kind |
| 112 | } |
| 113 | return ErrNotCortexError |
| 114 | } |
| 115 | |
| 116 | func GetMetadata(err error) interface{} { |
| 117 | if cortexError, ok := err.(*Error); ok { |
no outgoing calls
no test coverage detected