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

Method As

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

As Attempts to cast this Error to the requested Type, and returns nil if it can't.

(*Type)

Source from the content-addressed store, hash-verified

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 }

Callers 3

RunTaskFunction · 0.65
TestCrdbErrorImplFunction · 0.65
AsFunction · 0.65

Implementers 1

crdbErrorImplbackend/core/errors/crdb_impl.go

Calls

no outgoing calls

Tested by 1

TestCrdbErrorImplFunction · 0.52