public static function addErrorRoute($type, Route $route, $default = false) {

		if(false === ('-' . intval($type) == '-' . $type)) {
			return trigger_error(sprintf('Argument 1 passed to %s() must be of the type integer, "%s" given', __METHOD__, gettype($type)), E_USER_ERROR);
		}

		static :: $error['types'][$type][] = $route;

		if(true === $default || false === isset(static :: $error['default'][$type])) {
			static :: $error['default'][$type] = $route;
		}
	}
public static function addErrorRoute($type, Route $route, $default = false) {

		if(false === ('-' . intval($type) == '-' . $type)) {
			return trigger_error(sprintf('Argument 1 passed to %s() must be of the type integer, "%s" given', __METHOD__, gettype($type)), E_USER_ERROR);
		}

		static :: $error['types'][$type][] = $route;

		if(true === $default || false === isset(static :: $error['default'][$type])) {
			static :: $error['default'][$type] = $route;
		}
	}
public static function addErrorRoute ( $ type , Route $ route , $ default = false ) { if ( false === ( '-' . intval ( $ type ) == '-' . $ type ) ) { return trigger_error ( sprintf ( 'Argument 1 passed to %s() must be of the type integer, "%s" given' , __METHOD__ , gettype ( $ type ) ) , E_USER_ERROR ) ; } static :: $ error [ 'types' ] [ $ type ] [ ] = $ route ; if ( true === $ default || false === isset ( static :: $ error [ 'default' ] [ $ type ] ) ) { static :: $ error [ 'default' ] [ $ type ] = $ route ; } }
Adds a new error route to the error routes stack
@param integer $type
@param sFire\Routing\Extend\Route $route
@param boolean $default
Adds a new error route to the error routes stack