<?php
/**
 * Html2Pdf Library - Exception class
 *
 * HTML => PDF converter
 * distributed under the OSL-3.0 License
 *
 * @package   Html2pdf
 * @author    Laurent MINGUET <webmaster@html2pdf.fr>
 * @copyright 2023 Laurent MINGUET
 */

namespace Spipu\Html2Pdf\Exception;

/**
 * Image Exception
 */
class ImageException extends Html2PdfException
{
    /**
     * ERROR CODE 2
     * @var int
     */
    const ERROR_CODE = 2;

    /**
     * asked unknown image
     * @var string
     */
    protected $image;

    /**
     * set the image in error
     *
     * @param string $value the value
     *
     * @return ImageException
     */
    public function setImage($value)
    {
        $this->image = $value;

        return $this;
    }

    /**
     * get the image in error
     *
     * @return string
     */
    public function getImage()
    {
        return $this->image;
    }
}
