We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbc9737 commit 369f55aCopy full SHA for 369f55a
src/PhpWord/Exception/CreateTemporaryFileException.php
@@ -22,10 +22,16 @@
22
*/
23
final class CreateTemporaryFileException extends Exception
24
{
25
- protected $message = 'Could not create a temporary file with unique name in the specified directory.';
26
-
27
- final public function __construct()
+ /**
+ * @param integer $code The user defined exception code.
+ * @param \Exception $previous The previous exception used for the exception chaining.
28
+ */
29
+ final public function __construct($code = 0, \Exception $previous = null)
30
- parent::__construct($this->message);
31
+ parent::__construct(
32
+ 'Could not create a temporary file with unique name in the specified directory.',
33
+ $code,
34
+ $previous
35
+ );
36
}
37
0 commit comments