...

Package error

import "github.com/Diarkis/diarkis/error"
Overview
Index

Overview ▾

type Error

Error is the custom error data

type Error struct {
    // contains filtered or unexported fields
}

func New

func New(message string, code uint32) *Error

New creates a new error data

func (*Error) Bytes

func (e *Error) Bytes() []byte

Bytes returns the byte array for the client

func (*Error) Code

func (e *Error) Code() uint32

Code returns the error code

func (*Error) Message

func (e *Error) Message() string

Message returns the error message

func (*Error) StackTrace

func (e *Error) StackTrace() string

StackTrace return a string of stacktrace