Initial commit
This commit is contained in:
37
html2pdf-master/src/Exception/Html2PdfException.php
Normal file
37
html2pdf-master/src/Exception/Html2PdfException.php
Normal file
@ -0,0 +1,37 @@
|
||||
<?php
|
||||
/**
|
||||
* Html2Pdf Library - Exception class
|
||||
*
|
||||
* HTML => PDF converter
|
||||
* distributed under the OSL-3.0 License
|
||||
*
|
||||
* @package Html2pdf
|
||||
* @author Laurent MINGUET <webmaster@html2pdf.fr>
|
||||
* @copyright 2017 Laurent MINGUET
|
||||
*/
|
||||
|
||||
namespace Spipu\Html2Pdf\Exception;
|
||||
|
||||
/**
|
||||
* Html2Pdf Exception
|
||||
*/
|
||||
class Html2PdfException extends \Exception
|
||||
{
|
||||
/**
|
||||
* ERROR CODE 0
|
||||
* @var int
|
||||
*/
|
||||
const ERROR_CODE = 0;
|
||||
|
||||
/**
|
||||
* Construct the exception.
|
||||
*
|
||||
* @param string $message The Exception message to throw.
|
||||
*
|
||||
* @return Html2PdfException
|
||||
*/
|
||||
public function __construct($message)
|
||||
{
|
||||
parent::__construct($message, static::ERROR_CODE);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user