Use bespoke exception classes

Issue #1 closed
Chris Fuller created an issue

We’re currently using IllegalArgumentException and IllegalStateException in somewhat haphazard ways. Ideally, we would instead:

  • Have our own dedicated exception classes
  • Use individual exception classes that are specialized so that they can be distinguished without parsing the message
  • Provide information about where the error occurred, if possible, meaning a line/column of the source doc, an xpath/jq-style locator, etc.

Comments (3)

  1. Log in to comment