1
0
mirror of https://github.com/DanilaFe/abacus synced 2025-12-28 03:31:08 +00:00

Add a DomainException that avoids using null in functions.

This commit is contained in:
2017-09-01 18:23:44 -07:00
parent 9ddfeb02cf
commit 9c77fa8aeb
4 changed files with 34 additions and 6 deletions

View File

@@ -152,6 +152,8 @@ public class AbacusController implements PluginListener {
return resultingString;
} catch (ComputationInterruptedException exception) {
return ERR_STOP;
} catch (DomainException exception) {
return exception.getMessage();
} catch (RuntimeException exception) {
exception.printStackTrace();
return ERR_EXCEPTION;