Class AbstractErrorPostProcessor

    • Constructor Detail

      • AbstractErrorPostProcessor

        public AbstractErrorPostProcessor()
    • Method Detail

      • check

        protected void check​(ErrorHandler handler,
                             Actor source,
                             String type,
                             String msg)
        Hook method for checks.
        Default implementation ensures that error handler, source actor and error message are present.
        Parameters:
        handler - the error handler that this call comes from
        source - the source actor where the error originated
        type - the type of error
        msg - the error message
      • doPostProcessError

        protected abstract void doPostProcessError​(ErrorHandler handler,
                                                   Actor source,
                                                   String type,
                                                   String msg)
        Performs the actual post-processing of the error.
        Parameters:
        handler - the error handler that this call comes from
        source - the source actor where the error originated
        type - the type of error
        msg - the error message
      • postProcessError

        public void postProcessError​(ErrorHandler handler,
                                     Actor source,
                                     String type,
                                     String msg)
        Post-processes the error.
        Specified by:
        postProcessError in interface ErrorPostProcessor
        Parameters:
        handler - the error handler that this call comes from
        source - the source actor where the error originated
        type - the type of error
        msg - the error message