Thanks for the suggestion however this does not seem to work for me as my code is running from a static context, and I do not want the controller to catch the exception. I would like the static function which throws the exception to catch it without sending header information (if that’s possible)