Backend/internal/application/errors/not_found_error.go
2025-09-23 22:03:00 +04:00

15 lines
231 B
Go

package errors
type NotFoundError struct {
msg string
}
func NewNotFoundError(msg string) *NotFoundError {
return &NotFoundError{
msg: msg,
}
}
func (e *NotFoundError) Error() string {
return "Not found error: " + e.msg
}