/** * Raise a PLUGError originating from this instance. * @param int error code. * @param string error message text * @param int error type constant * @return void */ protected function trigger_error($code, $message, $type = E_USER_NOTICE) { $trace = debug_backtrace(); $Err = PLUG::raise_error($code, $message, $type, $trace); $this->on_trigger_error($Err); }