electricity_bill_calc_service/exceptions/not_found.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
}