X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Flsolesen%2Fpel%2Fsrc%2FPelOverflowException.php;fp=vendor%2Flsolesen%2Fpel%2Fsrc%2FPelOverflowException.php;h=634985b1aa35b9f7607b4ff47ad74ce1c2732d7c;hp=0000000000000000000000000000000000000000;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/vendor/lsolesen/pel/src/PelOverflowException.php b/vendor/lsolesen/pel/src/PelOverflowException.php new file mode 100644 index 000000000..634985b1a --- /dev/null +++ b/vendor/lsolesen/pel/src/PelOverflowException.php @@ -0,0 +1,68 @@ + + * @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); + } +}