/**
  * @param mixed $user
  * @param \Exception $previous
  */
 public function __construct($user, Exception $previous = null)
 {
     $userString = $this->convertToString($user);
     if ($user instanceof UserInterface) {
         $message = sprintf('"%s" is an instance of UserInterface but is somewhat invalid.', $userString);
     } else {
         $message = sprintf('"%s" (%s) is not a valid user. Expected instance of UserInterface.', $userString, gettype($user));
     }
     return parent::__construct($message, $code = 0, $previous);
 }
 /**
  * @param mixed         $userInfo Any info to be used to help registration
  * @param string        $message
  * @param integer       $code
  * @param \Exception    $previous
  */
 public function __construct($userInfo, $message = "", $code = 0, Exception $previous = null)
 {
     $this->userInformation = $userInfo;
     parent::__construct($message, $code, $previous);
 }
 /**
  * @param string $apiKey
  * @param int $code
  * @param \Exception $previous
  */
 public function __construct($apiKey = '', $code = 0, \Exception $previous = null)
 {
     $message = sprintf('API key `%s` is invalid', $apiKey);
     parent::__construct($message, $code, $previous);
 }
 /**
  *
  */
 public function __construct()
 {
     parent::__construct("Client authentication required", 401);
 }
 /**
  *
  */
 public function __construct()
 {
     parent::__construct("User re-authentication required", 401);
 }
 public function __construct(\Exception $previous)
 {
     parent::__construct((string) $previous, 0, $previous);
 }
 /**
  *
  */
 public function __construct()
 {
     parent::__construct("Missing sudo privilege", 403);
 }
 /**
  * {@inheritdoc}
  */
 public function __construct($code = 0, Exception $previous = null)
 {
     parent::__construct('The user cancelled the authentication request', $code, $previous);
 }