<commit_before><commit_msg>Writing the Default Exception Handler for all Database operations<commit_after><?php namespace Core\Drivers\Database;

/**
 *This class handles all exceptions throw in the context of caching
 *
 *@author <NAME> <<EMAIL>>
 *@copyright 2015 - 2020 <NAME>
 *@category Core
 *@package Core\Drivers\Database
 *@link https://github.com/gliver-mvc/gliver
 *@license http://opensource.org/licenses/MIT MIT License
 *@version 1.0.1
 */

use Core\Helpers\Path;

class DbeException extends \Exception {

	/**
	 *This method displays the error message
	 *
	 *@param 
	 *
	 */
	public function show()
	{
		//get the global $config array for site title
		global $config;

		//set the title variable
		$title = $config['title'];

		//the variable to be populated with the error message
		$msg = $this->getCode() . ': Error on line '.$this->getLine().' in '.$this->getFile() .': <b>  "'.$this->getMessage().' " </b> ';

		//load the template file
		include Path::sys() . 'Exceptions' . DIRECTORY_SEPARATOR . 'index.php';

		//stop further output
		exit();

	}

}
{'fraction_non_alphanumeric': 0.1509785647716682, 'fraction_numerical': 0.010251630941286114, 'mean_word_length': 3.570212765957447, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 13, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '117776', 'n_tokens_mistral': 366, 'n_tokens_neox': 330, 'n_words': 106}