public function __construct($message = null, $code = 0, \Exception $previous = null, $path = null)
 {
     if (null === $message) {
         if (null === $path) {
             $message = 'File could not be found.';
         } else {
             $message = sprintf('File "%s" could not be found.', $path);
         }
     }
     parent::__construct($message, $code, $previous, $path);
 }
Exemplo n.º 2
0
 function __construct(Socket $socket)
 {
     parent::__construct($socket, 'Can\'t write to socket');
 }
Exemplo n.º 3
0
 public function __construct($url, $message)
 {
     parent::__construct("[" . $url . "] " . $message);
 }
Exemplo n.º 4
0
 /**
  * Constructor.
  *
  * @param string          $path
  * @param \Exception|null $previous
  */
 public function __construct($path, \Exception $previous = null)
 {
     parent::__construct('File already exists at path: ' . $path, $path, 0, $previous);
 }
Exemplo n.º 5
0
 function __construct(Socket $socket)
 {
     parent::__construct($socket, 'Can\'t read from socket');
 }
 /**
  * Constructor.
  *
  * @param string     $path
  * @param \Exception $previous
  */
 public function __construct($path, \Exception $previous = null)
 {
     parent::__construct('Failed to create directory: ' . $path, $path, 0, $previous);
 }
 /**
  * Constructor.
  *
  * @param string          $path
  * @param \Exception|null $previous
  */
 public function __construct($path, \Exception $previous = null)
 {
     parent::__construct('File not found at path: ' . $path, $path, 0, $previous);
 }