[NEW] Introduced CreateTemporaryFileException.

This commit is contained in:
Roman Syroeshko 2014-07-02 13:17:13 +04:00
parent dbc9737136
commit 369f55a71f
1 changed files with 10 additions and 4 deletions

View File

@ -22,10 +22,16 @@ namespace PhpOffice\PhpWord\Exception;
*/
final class CreateTemporaryFileException extends Exception
{
protected $message = 'Could not create a temporary file with unique name in the specified directory.';
final public function __construct()
/**
* @param integer $code The user defined exception code.
* @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
);
}
}