Documentation ¶
Index ¶
Constants ¶
View Source
const (
UnknownCode = -1
)
Variables ¶
View Source
var ( TestErr = New(1, "Unknown") PluginMethodNotFound = New(2, "NewPlugin not found in plugin") ServerMethodNotFound = New(3, "NewServer not found in acceptor") )
Functions ¶
This section is empty.
Types ¶
type Error ¶
func NewWithErr ¶
type ErrorPredefined ¶
func New ¶
func New(code int, msg string) *ErrorPredefined
func (*ErrorPredefined) Error ¶
func (e *ErrorPredefined) Error() string
func (*ErrorPredefined) ErrorCode ¶
func (e *ErrorPredefined) ErrorCode() int
func (*ErrorPredefined) ErrorMsg ¶
func (e *ErrorPredefined) ErrorMsg() string
Click to show internal directories.
Click to hide internal directories.