/** * Constructs a new ezcAuthenticationOpenidConnectionException for the * URL $url. * * @param string $url URL which failed to connect * @param string $type An "Accept" header type, like "application/xrds+xml" */ public function __construct($url, $type = null) { $message = "Could not connect to {$url}"; if ($type !== null) { $message = $message . ". Type '{$type}' not supported."; } parent::__construct($message); }
/** * Constructs a new ezcAuthenticationOpenidRedirectException concerning $url. * * @param string $url The URL where the client could not be redirected */ public function __construct($url) { parent::__construct("Could not redirect to '{$url}'. Most probably your browser does not support redirection or JavaScript."); }
/** * Constructs a new ezcAuthenticationOpenidModeNotSupportedException with * OpenID mode $mode. * * @param string $mode OpenID mode which is not supported */ public function __construct($mode) { parent::__construct("OpenID request not supported: 'openid_mode = {$mode}'."); }