MCPcopy
hub / github.com/canopy-network/canopy / Error

Struct Error

lib/error.go:22–26  ·  view source on GitHub ↗

Defines a type for error modules

Source from the content-addressed store, hash-verified

20type ErrorModule string // Defines a type for error modules
21
22type Error struct {
23 ECode ErrorCode `json:"code"` // Error code
24 EModule ErrorModule `json:"module"` // Error module
25 Msg string `json:"msg"` // Error message
26}
27
28func NewError(code ErrorCode, module ErrorModule, msg string) *Error {
29 // Constructs a new Error instance

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected