CoreFiles by mySites.guru
DivisionByZeroException.php31 lines, 646 bytes, from Joomla_4.0.0-beta4-Beta-Full_Package.zip
Raw History Compare with 4.0.0-beta3
md5
c53602d5373ae5772dc9200ab0803bb5
sha1
ebd07adbcd4c2b5cf34ce98615f66bf69046ef16
sha256
f8cc30923c3bb77a4f856896bd2615f76ec342a2998eda92e4dac0f514daf5ea
<?php

declare(strict_types=1);

namespace Brick\Math\Exception;

/**
 * Exception thrown when a division by zero occurs.
 */
class DivisionByZeroException extends MathException
{
    /**
     * @return DivisionByZeroException
     *
     * @psalm-pure
     */
    public static function divisionByZero() : DivisionByZeroException
    {
        return new self('Division by zero.');
    }

    /**
     * @return DivisionByZeroException
     *
     * @psalm-pure
     */
    public static function denominatorMustNotBeZero() : DivisionByZeroException
    {
        return new self('The denominator of a rational number cannot be zero.');
    }
}

No other release has this exact content. See every version of this file.