Versions in this module Expand all Collapse all v2 v2.0.0 Dec 4, 2023 Changes in this version + var ErrBufferTooLarge = New("buffer too large") + var ErrClientShut = New("client is shut") + var ErrConnectionClosed = New("connection is closed") + var ErrConnectionHanged = New("connection is hanged") + var ErrInvalidArgument = New("invalid argument") + var ErrInvalidGID = New("invalid gate id") + var ErrInvalidMessage = New("invalid message") + var ErrInvalidNID = New("invalid node id") + var ErrInvalidSessionKind = New("invalid session kind") + var ErrNotFoundEndpoint = New("not found endpoint") + var ErrNotFoundEvent = New("not found event") + var ErrNotFoundRoute = New("not found route") + var ErrNotFoundSession = New("not found session") + var ErrNotFoundUserLocation = New("not found user's location") + var ErrReceiveTargetEmpty = New("the receive target is empty") + var ErrRouteOverflow = New("route overflow") + var ErrSeqOverflow = New("seq overflow") + var ErrTooManyConnection = New("too many connection") + func As(err error, target interface{}) bool + func Cause(err error) error + func Code(err error) *codes.Code + func Is(err, target error) bool + func New(text string) error + func Next(err error) error + func Replace(err error, text string, condition ...codes.Code) error + func Stack(err error) *stack.Stack + func Unwrap(err error) error + type Error struct + func NewError(args ...interface{}) *Error + func NewErrorWithStack(args ...interface{}) *Error + func (e *Error) As(target interface{}) bool + func (e *Error) Cause() error + func (e *Error) Code() *codes.Code + func (e *Error) Error() (text string) + func (e *Error) Format(s fmt.State, verb rune) + func (e *Error) Is(target error) bool + func (e *Error) Next() error + func (e *Error) Replace(text string, condition ...*codes.Code) error + func (e *Error) Stack() *stack.Stack + func (e *Error) String() string + func (e *Error) Unwrap() error