Documentation ¶ Index ¶ type ErrorCode func (errorCode ErrorCode) WSErr(msgs ...string) WSError type WSError func Error(err error) WSError func New(code ErrorCode, msg string) WSError func (err WSError) Bytes() []byte func (err WSError) Error() string func (err WSError) ErrorCode() int64 func (err WSError) String() string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type ErrorCode ¶ type ErrorCode int64 const ( DefaultErr ErrorCode = -99 AlreadyInParty ErrorCode = 1 ) func (ErrorCode) WSErr ¶ func (errorCode ErrorCode) WSErr(msgs ...string) WSError type WSError ¶ type WSError struct { // contains filtered or unexported fields } func Error ¶ func Error(err error) WSError func New ¶ func New(code ErrorCode, msg string) WSError func (WSError) Bytes ¶ func (err WSError) Bytes() []byte func (WSError) Error ¶ func (err WSError) Error() string error func (WSError) ErrorCode ¶ func (err WSError) ErrorCode() int64 func (WSError) String ¶ func (err WSError) String() string stringer Source Files ¶ View all Source files error.go Click to show internal directories. Click to hide internal directories.