/** * Preforms the required actions to recover from an exception * @access public * @param Exception $e The exception to recover from */ public function recover($e) { $this->setHeaders(); pf('%s', atsumi_ErrorParser::parse($e, self::getContentType(), $this)); exit; }
/** * Used by an atsumi_Observable object to notify the lissener of an event * @access public * @param atsumi_Observable $sender The Observable object that called the observer * @param atsumi_EventArgs $args Any args related to the event */ public function notify(atsumi_Observable $sender, atsumi_EventArgs $args) { $this->writeToLog(atsumi_ErrorParser::parse($args->exception, atsumi_ErrorParser::PLAINTEXT, $args->recoverer)); }
/** * Used by an atsumi_Observable object to notify the lissener of an event * @access public * @param atsumi_Observable $sender The Observable object that called the observer * @param atsumi_EventArgs $args Any args related to the event */ public function notify(atsumi_Observable $sender, atsumi_EventArgs $args) { if ($this->onlyWhenRecovering && !$args->recoverer) { return; } $this->mergeDataToSession(atsumi_ErrorParser::parse($args->exception, atsumi_ErrorParser::PLAINTEXT, $args->recoverer)); }