Allows to get list of exceptions thrown by method