MCPcopy
hub / github.com/safing/portmaster / Error

Struct Error

spn/terminal/errors.go:12–19  ·  view source on GitHub ↗

Error is a terminal error.

Source from the content-addressed store, hash-verified

10
11// Error is a terminal error.
12type Error struct {
13 // id holds the internal error ID.
14 id uint8
15 // external signifies if the error was received from the outside.
16 external bool
17 // err holds the wrapped error or the default error message.
18 err error
19}
20
21// ID returns the internal ID of the error.
22func (e *Error) ID() uint8 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected