package
0.0.0-20220330083110-b34c8900c413
Repository: https://github.com/menciuscheng/superman.git
Documentation: pkg.go.dev

# Functions

Cause cause from error to ecode.
Equal equal a and b by code int.
EqualError equal error.
Error returns a ecode.Codes and register associated ecode message NOTE: Error codes and messages should be kept together.
Int parse code int to error.
New new a ecode.Codes by int value.
Register register ecode message map.
String parse code string to error.
TopCode returns the first Code object if any code type error in err's chain Otherwise, returns CodeNotFoundErr.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

Codes ecode error interface which has a code & message.

# Type aliases

A Code is an int error code spec.