Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
util-app: Add visibility for NonFatal exceptions during exiting of an…
… App Summary: Problem When exceptions occur in executing `c.t.app.App#close` they are mostly swallowed -- the `closeOnExitLast` returns the first encountered exception. However, there is no visibilty on any NonFatal exception from executing registered `onExit` functions or closing `closeOnExit` Closables, nor over all NonFatals from closing `closeOnExitLast` Closables. Solution Update the logic in `c.t.app.App#close` to allow for logging and collecting NonFatal exceptions which occur during closing of the app. The collected exceptions are finally thrown in the new CloseException. Result Users will get visibility into NonFatal exceptions which happen during closing of the application through logging and collection of causes in a thrown CloseException. JIRA Issues: CSL-6040 Differential Revision: https://phabricator.twitter.biz/D146029
- Loading branch information