Utility for accessing and looking up exit statuses in Java