MCPcopy Create free account
hub / github.com/devaccuracy/ledgerforge / Error

Method Error

internal/apierror/apierror.go:49–51  ·  view source on GitHub ↗

Error implements the error interface for APIError. It returns a formatted string combining the error code and message.

()

Source from the content-addressed store, hash-verified

47// Error implements the error interface for APIError.
48// It returns a formatted string combining the error code and message.
49func (e APIError) Error() string {
50 return fmt.Sprintf("%s: %s", e.Code, e.Message)
51}
52
53// NewAPIError creates a new APIError instance.
54// It logs the error details and returns the error object with the provided code, message, and additional details.

Callers 2

TestNewAPIErrorFunction · 0.95
NewAPIErrorFunction · 0.45

Calls

no outgoing calls

Tested by 1

TestNewAPIErrorFunction · 0.76