Dump changes
This commit is contained in:
parent
e12550a643
commit
aac2ea1b74
25 changed files with 129 additions and 76 deletions
|
|
@ -1,29 +0,0 @@
|
|||
package errors
|
||||
|
||||
type UnknownError struct {
|
||||
Err error
|
||||
}
|
||||
|
||||
func (err UnknownError) Error() string {
|
||||
return err.Err.Error()
|
||||
}
|
||||
|
||||
func (err UnknownError) Unwrap() error {
|
||||
return err.Err
|
||||
}
|
||||
|
||||
type NotFoundError struct {
|
||||
Message string
|
||||
}
|
||||
|
||||
func (err NotFoundError) Error() string {
|
||||
return err.Message
|
||||
}
|
||||
|
||||
type AlreadyExistsError struct {
|
||||
Message string
|
||||
}
|
||||
|
||||
func (err AlreadyExistsError) Error() string {
|
||||
return err.Message
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue