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

Method Error

errors.go:102–107  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

100}
101
102func (e AsyncError) Error() string {
103 if e.Err != nil {
104 return "async started with error: " + e.Err.Error()
105 }
106 return "async started"
107}
108
109func (e AsyncError) Unwrap() error {
110 return e.Err

Callers 15

TestAsyncErrorFunction · 0.95
TestInvalidEventErrorFunction · 0.45
TestUnknownEventErrorFunction · 0.45
TestInTransitionErrorFunction · 0.45
TestNotInTransitionErrorFunction · 0.45
TestNoTransitionErrorFunction · 0.45
TestCanceledErrorFunction · 0.45
TestInternalErrorFunction · 0.45
TestSameStateFunction · 0.45
TestSetStateFunction · 0.45
TestBadTransitionFunction · 0.45
TestInappropriateEventFunction · 0.45

Calls

no outgoing calls

Tested by 15

TestAsyncErrorFunction · 0.76
TestInvalidEventErrorFunction · 0.36
TestUnknownEventErrorFunction · 0.36
TestInTransitionErrorFunction · 0.36
TestNotInTransitionErrorFunction · 0.36
TestNoTransitionErrorFunction · 0.36
TestCanceledErrorFunction · 0.36
TestInternalErrorFunction · 0.36
TestSameStateFunction · 0.36
TestSetStateFunction · 0.36
TestBadTransitionFunction · 0.36
TestInappropriateEventFunction · 0.36