1 package nrc
2 3 import "errors"
4 5 var (
6 // ErrUnauthorized is returned when a client is not authorized.
7 ErrUnauthorized = errors.New("unauthorized")
8 // ErrInvalidSession is returned when a session ID is invalid or not found.
9 ErrInvalidSession = errors.New("invalid session")
10 // ErrTooManySubscriptions is returned when a session has too many subscriptions.
11 ErrTooManySubscriptions = errors.New("too many subscriptions")
12 // ErrInvalidMessageType is returned when the message type is invalid.
13 ErrInvalidMessageType = errors.New("invalid message type")
14 // ErrSessionExpired is returned when a session has expired.
15 ErrSessionExpired = errors.New("session expired")
16 // ErrDecryptionFailed is returned when message decryption fails.
17 ErrDecryptionFailed = errors.New("decryption failed")
18 // ErrEncryptionFailed is returned when message encryption fails.
19 ErrEncryptionFailed = errors.New("encryption failed")
20 // ErrRelayConnectionFailed is returned when connection to the local relay fails.
21 ErrRelayConnectionFailed = errors.New("relay connection failed")
22 // ErrRendezvousConnectionFailed is returned when connection to the rendezvous relay fails.
23 ErrRendezvousConnectionFailed = errors.New("rendezvous relay connection failed")
24 )
25