[NEW] Introduced CreateTemporaryFileException.
This commit is contained in:
parent
dbc9737136
commit
369f55a71f
@ -22,10 +22,16 @@ namespace PhpOffice\PhpWord\Exception;
|
|||||||
*/
|
*/
|
||||||
final class CreateTemporaryFileException extends Exception
|
final class CreateTemporaryFileException extends Exception
|
||||||
{
|
{
|
||||||
protected $message = 'Could not create a temporary file with unique name in the specified directory.';
|
/**
|
||||||
|
* @param integer $code The user defined exception code.
|
||||||
final public function __construct()
|
* @param \Exception $previous The previous exception used for the exception chaining.
|
||||||
|
*/
|
||||||
|
final public function __construct($code = 0, \Exception $previous = null)
|
||||||
{
|
{
|
||||||
parent::__construct($this->message);
|
parent::__construct(
|
||||||
|
'Could not create a temporary file with unique name in the specified directory.',
|
||||||
|
$code,
|
||||||
|
$previous
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user