I asked a question "how to trigger 404 in controller", my post was closed and pointed me to an early question which was considered answered. I followed that link and tried to implement PageItem404: GetPageItemProcessor as described in the answer, I got compile error says
CS7036 There is no argument given that corresponds to the required formal parameter 'baseClient' of 'GetPageItemProcessor.GetPageItemProcessor(BaseClient)'
After I added the constructor like following
public PageItem404(BaseClient baseClient) : base(baseClient) { }
the pipeline throw exception after I added patch to configuration:
Server Error in '/' Application.
Could not create instance of type: Common.Feature.Errors.Pipelines.HttpRequest.PageItem404. No matching constructor was found. Constructor parameters:
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: Sitecore.Exceptions.ConfigurationException: Could not create instance of type: Common.Feature.Errors.Pipelines.HttpRequest.PageItem404. No matching constructor was found. Constructor parameters:
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
how to correctly implement GetPageItemProcessor and get it to work?