Error implements the buildin error interface.
()
| 49 | |
| 50 | // Error implements the buildin error interface. |
| 51 | func (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. |
nothing calls this directly
no outgoing calls
no test coverage detected