Class ProcessorLibrary.ErrorAdder

  • All Implemented Interfaces:
    com.yahoo.component.Component, com.yahoo.component.Deconstructable, Comparable<com.yahoo.component.Component>
    Enclosing class:
    ProcessorLibrary

    public static class ProcessorLibrary.ErrorAdder
    extends Processor
    A processor which adds an ErrorMessage to the request of the top level data of each returned response.
    • Constructor Detail

      • ErrorAdder

        public ErrorAdder​(ErrorMessage errorMessage)
    • Method Detail

      • process

        public Response process​(Request request,
                                Execution execution)
        Description copied from class: Processor
        Performs a processing request and returns the response
        Specified by:
        process in class Processor
        Returns:
        a Response instance - never null - containing the data produced by this processor and those it forwards the request to