Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. IntegerOverflowException.php

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\Exception
View 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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal