MCPcopy
hub / github.com/cortexlabs/cortex / GetKind

Function GetKind

pkg/lib/errors/error.go:109–114  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

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

Callers 2

EventFromExceptionFunction · 0.92
respondErrorCodeFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected