/java-exception-list

List all the exceptions inside Java app without modifying the code

Primary LanguageJavaScriptUniversal Permissive License v1.0UPL-1.0

What it is

It solves the following problem:

How to list all the exceptions generated by your application without modyfing its code.

How to use

  1. Install Node.js (any modern version is ok);
  2. Run your app with verbose classloading: java -verbose:class ...;
  3. Redirect or copy output of your app into a separate text file;
  4. Run node java-exception-list.js input.txt ouput.txt true
    • First parameter is an ouput of your app
    • Second parameter is a file to be created
    • Third parameter is true|false - wether you should get plain or fully qualified class names
  5. PROFIT

License

Universal Permissive License 1.0, as described in LICENSE.txt