protected function renderConfigurationExceptions( Closure $action ) {
		try {
			$action();
		} catch ( ConfigurationException $exception ) {
			if ( ! $this->render_configuration_exceptions ) {
				throw $exception;
			}

			$request = Request::fromGlobals();
			$handler = $this->resolve( WPEMERGE_EXCEPTIONS_CONFIGURATION_ERROR_HANDLER_KEY );

			add_filter( 'wpemerge.pretty_errors.apply_admin_styles', '__return_false' );
			Response::respond( $handler->getResponse( $request, $exception ) );
			wp_die();
		}
	}
protected function renderConfigurationExceptions( Closure $action ) {
		try {
			$action();
		} catch ( ConfigurationException $exception ) {
			if ( ! $this->render_configuration_exceptions ) {
				throw $exception;
			}

			$request = Request::fromGlobals();
			$handler = $this->resolve( WPEMERGE_EXCEPTIONS_CONFIGURATION_ERROR_HANDLER_KEY );

			add_filter( 'wpemerge.pretty_errors.apply_admin_styles', '__return_false' );
			Response::respond( $handler->getResponse( $request, $exception ) );
			wp_die();
		}
	}
protected function renderConfigurationExceptions ( Closure $ action ) { try { $ action ( ) ; } catch ( ConfigurationException $ exception ) { if ( ! $ this -> render_configuration_exceptions ) { throw $ exception ; } $ request = Request :: fromGlobals ( ) ; $ handler = $ this -> resolve ( WPEMERGE_EXCEPTIONS_CONFIGURATION_ERROR_HANDLER_KEY ) ; add_filter ( 'wpemerge.pretty_errors.apply_admin_styles' , '__return_false' ) ; Response :: respond ( $ handler -> getResponse ( $ request , $ exception ) ) ; wp_die ( ) ; } }
Catch any configuration exceptions and short-circuit to an error page.

@codeCoverageIgnore
@param  Closure $action
@return void
Catch any configuration exceptions and short - circuit to an error page .