pattypan icon indicating copy to clipboard operation
pattypan copied to clipboard

Fix exception handling

Open tfmorris opened this issue 11 months ago • 0 comments

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.

tfmorris avatar Jul 11 '23 00:07 tfmorris