Consolidate InvalidOperationException for operators
Summary:
- Seems unnecessary to special case mul, sub, etc. operators from add
- consolidates them to throw the InvalidOperationException that add was throwing instead of ExtendedException (we don't seem to utilize that it is an ExtendedException and can carry a php stack trace).
- main difference is InvalidOperationException can be caught while ExtendedException is a fatal. Either these errors should all throw exceptions or all fatal. **RFC** Is there a reason to do one over the other? Is there a reason we are special casing add?
Reviewed By: ricklavoie
Differential Revision:
D26185308
fbshipit-source-id:
e822b923ede1a344b4e1d5fb1714eb84f5530c69