MCPcopy
hub / github.com/looplab/fsm / Error

Method Error

errors.go:82–87  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

80}
81
82func (e CanceledError) Error() string {
83 if e.Err != nil {
84 return "transition canceled with error: " + e.Err.Error()
85 }
86 return "transition canceled"
87}
88
89func (e CanceledError) Unwrap() error {
90 return e.Err

Callers 1

TestCanceledErrorFunction · 0.95

Calls 1

ErrorMethod · 0.45

Tested by 1

TestCanceledErrorFunction · 0.76