Add existing codebase

This commit is contained in:
Andrey Chervyakov 2021-04-12 17:01:00 +06:00
commit e12550a643
25 changed files with 1409 additions and 0 deletions

View file

@ -0,0 +1,29 @@
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
}