MCPcopy
hub / github.com/apache/devlake / Error

Interface Error

backend/core/errors/errors.go:26–36  ·  view source on GitHub ↗

Error The interface that all internally managed errors should adhere to.

Source from the content-addressed store, hash-verified

24 }
25 // Error The interface that all internally managed errors should adhere to.
26 Error interface {
27 requiredSupertype
28 // Messages the message associated with this Error.
29 Messages() Messages
30 // GetType gets the Type of this error
31 GetType() *Type
32 // As Attempts to cast this Error to the requested Type, and returns nil if it can't.
33 As(*Type) Error
34 // GetData returns the data associated with this Error (may be nil)
35 GetData() interface{}
36 }
37)
38
39// AsLakeErrorType attempts to cast err to Error, otherwise returns nil

Callers 27

RunTaskFunction · 0.65
TestCrdbErrorImplFunction · 0.65
runPipelineFunction · 0.65
ApiOutputErrorFunction · 0.65
ApiOutputAbortFunction · 0.65
handlePluginCallFunction · 0.95
newSingleCrdbErrorFunction · 0.65
TestCrdbErrorImplFunction · 0.65

Implementers 1

crdbErrorImplbackend/core/errors/crdb_impl.go

Calls

no outgoing calls

Tested by

no test coverage detected