| Current Path : /var/www/html/administrator/components/com_jchat/Framework/Exception/ |
| Current File : /var/www/html/administrator/components/com_jchat/Framework/Exception/Exception.php |
<?php
namespace JExtstore\Component\JChat\Administrator\Framework;
/**
* @package JCHAT::FRAMEWORK::administrator::components::com_jchat
* @subpackage framework
* @subpackage exception
* @author Joomla! Extensions Store
* @copyright (C)2015 - Joomla! Extensions Store
* @license GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html
*/
defined('_JEXEC') or die('Restricted access');
/**
* JChat Exception object
*
* @package JCHAT::FRAMEWORK::administrator::components::com_jchat
* @subpackage framework
* @subpackage exception
* @since 2.0
*/
class Exception extends \Exception {
/**
* Error level
* @access private
* @var string
*/
private $exceptionLevel;
/**
* Error level accessor method
* @access public
* @return string
*/
public function getExceptionLevel() {
return $this->exceptionLevel;
}
/**
* Class constructor
* @access public
* @return Object&
*/
public function __construct($message, $level, $code = 0) {
parent::__construct($message, $code);
// Set error level
$this->exceptionLevel = $level;
}
}