Error is the custom error data
type Error struct {
// contains filtered or unexported fields
}
func New(message string, code uint32) *Error
New creates a new error data
func (e *Error) Bytes() []byte
Bytes returns the byte array for the client
func (e *Error) Code() uint32
Code returns the error code
func (e *Error) Message() string
Message returns the error message
func (e *Error) StackTrace() string
StackTrace return a string of stacktrace