Invalid parameter values will return an error detailing which parameter is problematic.
Details
The (continuous) uniform distribution with min and max parameters \(a\)
and \(b\) respectively has density:
$$f(x) = \frac{1}{b - a} \times \bm{1}_{\{x \in [a, b] \}}$$
for \(x \in [a, b]\).