server: test invalid session

This commit is contained in:
aler9
2021-05-02 22:16:08 +02:00
committed by Alessandro Ros
parent f0585fab80
commit 1906c9f776
3 changed files with 66 additions and 4 deletions

View File

@@ -199,3 +199,11 @@ type ErrServerSessionLinkedToOtherConn struct{}
func (e ErrServerSessionLinkedToOtherConn) Error() string {
return "session is linked to another connection"
}
// ErrServerInvalidSession is an error that can be returned by a server.
type ErrServerInvalidSession struct{}
// Error implements the error interface.
func (e ErrServerInvalidSession) Error() string {
return "invalid session"
}