initial commit
This commit is contained in:
commit
bec2cfd017
18 files changed
+781
No files matched your search
@@ -0,0 +1,17 @@
|
||||
package errors
|
||||
|
||||
type GomaxError struct {
|
||||
Message string
|
||||
Err error
|
||||
}
|
||||
|
||||
func (ge *GomaxError) Error() string {
|
||||
return ge.Err.Error()
|
||||
}
|
||||
|
||||
func New(parent error, text string) error {
|
||||
return &GomaxError{
|
||||
Message: text,
|
||||
Err: parent,
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user