Files
electricity_bill_calc_service/exceptions/not_found.go
2022-08-12 11:40:21 +08:00

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
}