<?php

/**
 * Description of Handler
 *
 * @author arson
 */
class Eppe_Error_Handler {

	public static function handle($errno, $errstr, $errfile, $errline) {
		if (!error_reporting())
			return;

		throw new Rtn_Exception("Code: " . $errno . ' | ' . $errstr . " in $errfile:$errline");
	}

	public static function set() {
		set_error_handler(array(__CLASS__, 'handle'));
	}

}
