update exceptions thrown by mock