aboutsummaryrefslogtreecommitdiff
path: root/src/NXP/Exception
diff options
context:
space:
mode:
authorBruce Wells <phpfui@users.noreply.github.com>2018-10-25 18:54:54 +0300
committerGitHub <noreply@github.com>2018-10-25 18:54:54 +0300
commit43f0ff3f28d198fbb4e36346fc5f36fa91cf3e18 (patch)
tree28a0abef9e0e48df01660985339e93c69a2cd746 /src/NXP/Exception
parent4a672cfd94c07e1821227f27fd1edd2217685136 (diff)
Support for better invalid expression detection and divide by zero (#30)
* Additional validation for bad expressions (*+ for example) * Removing DivisionByZeroException testing for now Added more unit tests.
Diffstat (limited to 'src/NXP/Exception')
-rw-r--r--src/NXP/Exception/DivisionByZeroException.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/NXP/Exception/DivisionByZeroException.php b/src/NXP/Exception/DivisionByZeroException.php
new file mode 100644
index 0000000..3a9a978
--- /dev/null
+++ b/src/NXP/Exception/DivisionByZeroException.php
@@ -0,0 +1,19 @@
+<?php
+
+/**
+ * This file is part of the MathExecutor package
+ *
+ * (c) Alexander Kiryukhin
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code
+ */
+
+namespace NXP\Exception;
+
+/**
+ * @author Vitaliy Zhuk <zhuk2205@gmail.com>
+ */
+class DivisionByZeroException extends MathExecutorException
+{
+}