batufa/system/classes/kohana/error.php

27 lines
761 B
PHP

<?php defined('SYSPATH') or die('No direct script access.');
class Kohana_Error_Core extends ErrorException {
protected $codes = array
(
E_ERROR => 'Error',
E_USER_ERROR => 'User Error',
E_PARSE => 'Parse Error',
E_WARNING => 'Warning',
E_USER_WARNING => 'User Warning',
E_STRICT => 'Strict',
E_NOTICE => 'Notice',
E_RECOVERABLE_ERROR => 'Recoverable Error',
);
public function __construct($message, $code, $severity, $filename, $line)
{
$this->message = $message;
$this->code = isset($this->codes[$code]) ? $this->codes[$code] : $code;
$this->severity = $severity;
$this->file = $filename;
$this->line = $line;
}
} // End Kohana_Error