X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=vendor%2Flsolesen%2Fpel%2Fsrc%2FPelJpegInvalidMarkerException.php;fp=vendor%2Flsolesen%2Fpel%2Fsrc%2FPelJpegInvalidMarkerException.php;h=5eb7637f8cb694c4240a70784d7d285f905beca8;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hp=0000000000000000000000000000000000000000;hpb=74df008bdbb3a11eeea356744f39b802369bda3c;p=yaffs-website diff --git a/vendor/lsolesen/pel/src/PelJpegInvalidMarkerException.php b/vendor/lsolesen/pel/src/PelJpegInvalidMarkerException.php new file mode 100644 index 000000000..5eb7637f8 --- /dev/null +++ b/vendor/lsolesen/pel/src/PelJpegInvalidMarkerException.php @@ -0,0 +1,55 @@ + + * @license http://www.gnu.org/licenses/gpl.html GNU General Public License (GPL) + * @package PEL + * @subpackage Exception + */ +class PelJpegInvalidMarkerException extends PelException +{ + + /** + * Construct a new invalid marker exception. + * The exception will contain a message describing the error, + * including the byte found and the offset of the offending byte. + * + * @param int $marker + * the byte found. + * + * @param int $offset + * the offset in the data. + */ + public function __construct($marker, $offset) + { + parent::__construct('Invalid marker found at offset %d: 0x%2X', $offset, $marker); + } +}