Exemplo n.º 1
0
 /**
  * Constructs ServiceContainerException
  *
  * @param string         $message  The message
  * @param string|null    $service  The service name
  * @param Exception|null $previous The previous exception
  */
 public function __construct(string $message, string $service = null, Exception $previous = null)
 {
     $this->service = $service;
     parent::__construct($message, 0, $previous);
 }
Exemplo n.º 2
0
 /**
  * Constructs ServiceContainerException
  *
  * @param string         $message  The message
  * @param string|null    $template The template name
  * @param Exception|null $previous The previous exception
  */
 public function __construct(string $message, string $template = null, Exception $previous = null)
 {
     $this->template = $template;
     parent::__construct($message, 0, $previous);
 }
Exemplo n.º 3
0
 /**
  * Constructs FilesystemException
  *
  * @param string         $message  The message
  * @param string|null    $path     The file path
  * @param Exception|null $previous The previous exception
  */
 public function __construct(string $message, string $path = null, Exception $previous = null)
 {
     $this->path = $path;
     parent::__construct($message, 0, $previous);
 }