Expose parameter passed to exceptions

This commit is contained in:
Mathieu Pipet
2015-06-09 17:30:13 +02:00
parent c174b6fc65
commit c84ea1ea62
7 changed files with 22 additions and 0 deletions

View File

@@ -31,7 +31,9 @@ class ServerErrorException extends OAuthException
*/
public function __construct($parameter = null)
{
$this->parameter = parameter;
$parameter = is_null($parameter) ? 'The authorization server encountered an unexpected condition which prevented it from fulfilling the request.' : $parameter;
parent::__construct($parameter);
}
}