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); }
function __construct(Socket $socket) { parent::__construct($socket, 'Can\'t write to socket'); }
public function __construct($url, $message) { parent::__construct("[" . $url . "] " . $message); }
/** * 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); }
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); }