common-errors.go: added errDivisionByZero()

This commit is contained in:
Celestino Amoroso 2024-05-13 14:23:21 +02:00
parent 47be0c66cf
commit ab07405cda

View File

@ -18,6 +18,10 @@ func errExpectedGot(funcName string, kind string, value any) error {
return fmt.Errorf("%s() expected %s, got %T (%v)", funcName, kind, value, value)
}
func errDivisionByZero(funcName string) error {
return fmt.Errorf("%s() division by zero", funcName)
}
// --- Parameter errors
func errOneParam(funcName string) error {