MCPcopy Index your code
hub / github.com/authorizerdev/authorizer / Error

Method Error

internal/service/errors.go:55–63  ·  view source on GitHub ↗

Error returns the human-readable message. When constructed from an underlying error without an explicit message, it falls back to that error's text so existing message-based assertions keep passing.

()

Source from the content-addressed store, hash-verified

53// underlying error without an explicit message, it falls back to that error's
54// text so existing message-based assertions keep passing.
55func (e *Error) Error() string {
56 if e.msg != "" {
57 return e.msg
58 }
59 if e.err != nil {
60 return e.err.Error()
61 }
62 return "service error"
63}
64
65// Unwrap exposes the underlying cause for errors.Is / errors.As.
66func (e *Error) Unwrap() error { return e.err }

Calls

no outgoing calls