Exceptions thrown by method 'monitor' specified