Set a value on the exception so calling function can get the info