Added the ability to change the args based on the exception

I added the ability to change the args based on the exception. See the change to README.md for details about how it's used.