added accepted_exceptions and discarded_exceptions