Put project modules under pkg directory
This commit is contained in:
parent
f4684be37d
commit
e1516e450b
13 changed files with 7 additions and 7 deletions
29
pkg/cgnolink/errors/errors.go
Normal file
29
pkg/cgnolink/errors/errors.go
Normal 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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue