protected function toResponse( $exception ) {
		// @codeCoverageIgnoreStart
		if ( $exception instanceof InvalidCsrfTokenException ) {
			wp_nonce_ays( '' );
		}
		// @codeCoverageIgnoreEnd

		if ( $exception instanceof NotFoundException ) {
			return Response::error( 404 );
		}

		return false;
	}
protected function toResponse( $exception ) {
		// @codeCoverageIgnoreStart
		if ( $exception instanceof InvalidCsrfTokenException ) {
			wp_nonce_ays( '' );
		}
		// @codeCoverageIgnoreEnd

		if ( $exception instanceof NotFoundException ) {
			return Response::error( 404 );
		}

		return false;
	}
protected function toResponse ( $ exception ) { // @codeCoverageIgnoreStart if ( $ exception instanceof InvalidCsrfTokenException ) { wp_nonce_ays ( '' ) ; } // @codeCoverageIgnoreEnd if ( $ exception instanceof NotFoundException ) { return Response :: error ( 404 ) ; } return false ; }
Convert an exception to a ResponseInterface instance if possible.

@param  PhpException            $exception
@return ResponseInterface|false
Convert an exception to a ResponseInterface instance if possible .