pattypan
pattypan copied to clipboard
Fix exception handling
The error reporting mechanism (at least in the Excel code) is to throw new Exception("Some random error message")
which then means the caller needs to catch Exception
just for run of the mill errors.
Instead a specific Exception subclass should be defined (e.g. PattypanException
) which can then be thrown/caught instead of having to rely on catching the very broad java.lang.Exception
which is going to be quite error prone.