class IntegerOverflowException
Exception thrown when an integer overflow occurs.
Hierarchy
- class \Brick\Math\Exception\MathException extends \Brick\Math\Exception\Exception
- class \Brick\Math\Exception\IntegerOverflowException extends \Brick\Math\Exception\MathException
Expanded class hierarchy of IntegerOverflowException
1 file declares its use of IntegerOverflowException
- BigInteger.php in vendor/
brick/ math/ src/ BigInteger.php
File
-
vendor/
brick/ math/ src/ Exception/ IntegerOverflowException.php, line 12
Namespace
Brick\Math\ExceptionView source
class IntegerOverflowException extends MathException {
/**
* @psalm-pure
*/
public static function toIntOverflow(BigInteger $value) : IntegerOverflowException {
$message = '%s is out of range %d to %d and cannot be represented as an integer.';
return new self(\sprintf($message, (string) $value, PHP_INT_MIN, PHP_INT_MAX));
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
IntegerOverflowException::toIntOverflow | public static | function | @psalm-pure |