added diagnostic info to exceptions