<?php
/**
 * @brief		OAuth Exception Class
 * @since		29 Apr 2017
 */

namespace IPS\Login\Handler\OAuth2;

/**
 * OAuth2 Exception
 */
class _Exception extends \Exception
{
	/**
	 * @brief	Description of the error
	 */
	public $description;
	
	/**
	 * Constructor
	 *
	 * @param	string		$message		Exception Message
	 * @param	string|NULL	$description	Error Description or NULL.
	 * @return	void
	 */
	public function __construct( $message, $description = null )
	{
		parent::__construct( $message );
		$this->description = $description;
	}
}