PHP 8.3.31
Preview: DivisionByZeroException.php Size: 736 B
/proc/thread-self/root/home/getspomw/itechservicellc.com/vendor/brick/math/src/Exception/DivisionByZeroException.php

<?php

declare(strict_types=1);

namespace Brick\Math\Exception;

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

    /**
     * @psalm-pure
     */
    public static function modulusMustNotBeZero() : DivisionByZeroException
    {
        return new self('The modulus must not be zero.');
    }

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

Directory Contents

Dirs: 0 × Files: 6

Name Size Perms Modified Actions
736 B lrw-r--r-- 2025-10-28 20:21:58
Edit Download
526 B lrw-r--r-- 2025-10-28 20:21:58
Edit Download
156 B lrw-r--r-- 2025-10-28 20:21:58
Edit Download
248 B lrw-r--r-- 2025-10-28 20:21:58
Edit Download
969 B lrw-r--r-- 2025-10-28 20:21:58
Edit Download
459 B lrw-r--r-- 2025-10-28 20:21:58
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).