imports and better error reporting and stacktraces

This commit is contained in:
gnembon committed 2020-01-05 02:24:48 -04:00
1 parent 15fe9c5ad9
commit 1650f3233b
15 files changed
+351 -245

No files matched your search

@@ -3376,11 +3376,11 @@ public class CarpetExpression
}
catch (ExpressionException e)
{
throw new CarpetExpressionException(e.getMessage());
throw new CarpetExpressionException(e.getMessage(), e.stack);
}
catch (ArithmeticException ae)
{
throw new CarpetExpressionException("Math doesn't compute... "+ae.getMessage());
throw new CarpetExpressionException("Math doesn't compute... "+ae.getMessage(), null);
}
}
@@ -3423,11 +3423,11 @@ public class CarpetExpression
}
catch (ExpressionException e)
{
throw new CarpetExpressionException(e.getMessage());
throw new CarpetExpressionException(e.getMessage(), e.stack);
}
catch (ArithmeticException ae)
{
throw new CarpetExpressionException("Math doesn't compute... "+ae.getMessage());
throw new CarpetExpressionException("Math doesn't compute... "+ae.getMessage(), null);
}
}