In my program I have a method that is called every time a try catch statement catches an exception that takes in the exception and sends me an email with the error stack trace,