* @license http://www.gnu.org/licenses/gpl.html GNU General Public * License (GPL) * @package PEL */ /** * Exception cast when numbers overflow. * * @author Martin Geisler * @package PEL * @subpackage Exception */ class PelOverflowException extends PelException { /** * Construct a new overflow exception. * * @param int $v * the value that is out of range. * * @param int $min * the minimum allowed value. * * @param int $max * the maximum allowed value. */ public function __construct($v, $min, $max) { parent::__construct('Value %.0f out of range [%.0f, %.0f]', $v, $min, $max); } }