diff options
author | Bruce Wells <phpfui@users.noreply.github.com> | 2018-10-25 18:54:54 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-25 18:54:54 +0300 |
commit | 43f0ff3f28d198fbb4e36346fc5f36fa91cf3e18 (patch) | |
tree | 28a0abef9e0e48df01660985339e93c69a2cd746 /src/NXP/Exception | |
parent | 4a672cfd94c07e1821227f27fd1edd2217685136 (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.php | 19 |
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 +{ +} |