public static function getErrorRoute($type, $index = 0) {

		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);
		}

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

		if(true === isset(static :: $error['types'][$type][$index])) {
			return static :: $error['types'][$type][$index];
		}

		return null;
	}
public static function getErrorRoute($type, $index = 0) {

		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);
		}

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

		if(true === isset(static :: $error['types'][$type][$index])) {
			return static :: $error['types'][$type][$index];
		}

		return null;
	}
public static function getErrorRoute ( $ type , $ index = 0 ) { 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 ) ; } if ( false === ( '-' . intval ( $ index ) == '-' . $ index ) ) { return trigger_error ( sprintf ( 'Argument 2 passed to %s() must be of the type integer, "%s" given' , __METHOD__ , gettype ( $ index ) ) , E_USER_ERROR ) ; } if ( true === isset ( static :: $ error [ 'types' ] [ $ type ] [ $ index ] ) ) { return static :: $ error [ 'types' ] [ $ type ] [ $ index ] ; } return null ; }
Retrieve a route from the error route stack. Default the first on the stack, or route with optional index
@param string|integer $type
@param integer $index
@return null|sFire\Routing\Extend\Route
Retrieve a route from the error route stack . Default the first on the stack or route with optional index