15 lines
209 B
Go
15 lines
209 B
Go
package errors
|
|
|
|
type NotFoundError struct {
|
|
msg string
|
|
}
|
|
|
|
func NewNotFoundError(msg string) *NotFoundError {
|
|
return &NotFoundError{
|
|
msg: msg,
|
|
}
|
|
}
|
|
|
|
func (e *NotFoundError) Error() string {
|
|
return e.msg
|
|
}
|