31 lines
929 B
PHP
31 lines
929 B
PHP
<?php
|
|
/**
|
|
* System - PHP Framework
|
|
*
|
|
* PHP Version 5.6
|
|
*
|
|
* @copyright 2016 Ulf Gebhardt (http://www.webcraft-media.de)
|
|
* @license http://www.opensource.org/licenses/mit-license.php MIT
|
|
* @link https://github.com/webcraftmedia/system
|
|
* @package SYSTEM\LOG
|
|
*/
|
|
namespace SYSTEM\LOG;
|
|
|
|
/**
|
|
* System Exception Class provided by System for logging all kinds of System Exceptions.
|
|
* All other log Classes are derived from this.
|
|
*/
|
|
class SYSTEM_EXCEPTION extends \Exception {
|
|
/**
|
|
* Construct the Error
|
|
*
|
|
* @param string $message Error Message
|
|
* @param int $code Error Code
|
|
* @param \Exception $previous Previous Error leading to this one.
|
|
*/
|
|
public function __construct($message = "", $code = 1, $previous = NULL){
|
|
parent::__construct($message, $code, $previous);
|
|
if($previous == NULL){
|
|
error_handler_dbwriter::CALL($this, false);}
|
|
}
|
|
} |