14 lines
218 B
Go
14 lines
218 B
Go
package exceptions
|
|
|
|
type NotFoundError struct {
|
|
Message string
|
|
}
|
|
|
|
func NewNotFoundError(msg string) *NotFoundError {
|
|
return &NotFoundError{Message: msg}
|
|
}
|
|
|
|
func (e NotFoundError) Error() string {
|
|
return e.Message
|
|
}
|