mossadal/math-parser

View on GitHub
src/MathParser/Exceptions/DivisionByZeroException.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
/*
 * @package     Exceptions
 * @author      Frank Wikström <frank@mossadal.se>
 * @copyright   2015 Frank Wikström
 * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
 *
 */

namespace MathParser\Exceptions;

/**
 * Exception thrown when evaluating expressions containing a division by zero.
 */
class DivisionByZeroException extends MathParserException
{
    /** Constructor. Create a DivisionByZeroException */
    public function __construct()
    {
        parent::__construct("Division by zero.");
    }
}