Sometimes the returned search results in a Mass Update isn't the same as the results in a standard search, this is due to some limitations in a Mass Update Search. An example of this is Rev Rec Journal entries. Therefore, the workaround for this was to get the data from the standard saved search and use a script to read the excel data and update, as opposed to using the mass update feature.
PHP Exceptions are thrown when an unprecedented event or error occurs.
As a rule of thumb, an exception should not be used to control the application logic such as if-statements and should be a subclass of the Exception class.
One main advantage of having all exceptions caught by a single class is that we are able to create custom exception handlers that return different response messages depending on the exception.