When setProp fails for any reason, we throw a \InvalidArgumentException. We should instead from \InvalidArgumentException, but throw our own, such as PropertyIsBlacklisted or PropertyNotFound. That way clients implementing Unum can catch specific exception to implement custom logic.
This can be done in BC compatible way by simply extending \InvalidArgumentException.
When
setPropfails for any reason, we throw a\InvalidArgumentException. We should instead from\InvalidArgumentException, but throw our own, such asPropertyIsBlacklistedorPropertyNotFound. That way clients implementingUnumcan catch specific exception to implement custom logic.This can be done in BC compatible way by simply extending
\InvalidArgumentException.