You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
When
setProp
fails for any reason, we throw a\InvalidArgumentException
. We should instead from\InvalidArgumentException
, but throw our own, such asPropertyIsBlacklisted
orPropertyNotFound
. That way clients implementingUnum
can catch specific exception to implement custom logic.This can be done in BC compatible way by simply extending
\InvalidArgumentException
.The text was updated successfully, but these errors were encountered: