Class ExtErrorManager

    • Constructor Detail

      • ExtErrorManager

        public ExtErrorManager()
    • Method Detail

      • nameForCode

        protected String nameForCode​(int code)
        Get the name corresponding to the given error code.
        Parameters:
        code - the error code
        Returns:
        the corresponding name (not null)
      • errorToLogRecord

        protected ExtLogRecord errorToLogRecord​(String msg,
                                                Exception ex,
                                                int code)
        Convert the given error to a log record which can be published to handler(s) or stored. Care should be taken not to publish the log record to a logger that writes to the same handler that produced the error.
        Parameters:
        msg - the error message (possibly null)
        ex - the error exception (possibly null)
        code - the error code
        Returns:
        the log record (not null)