Exemplo n.º 1
0
 /**
  * Constructor
  *
  * @param string $uri
  * @param array $privileges
  */
 public function __construct($uri, array $privileges)
 {
     $this->uri = $uri;
     $this->privileges = $privileges;
     parent::__construct('User did not have the required privileges (' . implode(',', $privileges) . ') for path "' . $uri . '"');
 }
Exemplo n.º 2
0
 /**
  * @param string $message
  * @param bool $retry
  * @param \Exception $previous
  */
 public function __construct($message, $retry = false, \Exception $previous = null)
 {
     parent::__construct($message, 0, $previous);
     $this->retry = $retry;
 }