MCPcopy Create free account
hub / github.com/koding/kite / Error

Method Error

sockjsclient/sockjsclient.go:51–56  ·  view source on GitHub ↗

Error implements the buildin error interface.

()

Source from the content-addressed store, hash-verified

49
50// Error implements the buildin error interface.
51func (err *ErrSession) Error() string {
52 if err.Err == nil {
53 return fmt.Sprintf("%s (%s)", stateTexts[err.State], err.Type)
54 }
55 return fmt.Sprintf("%s: %s (%s)", stateTexts[err.State], err.Err, err.Type)
56}
57
58// IsSessionClosed tests whether given error is caused
59// by a closed session.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected