Class IgniteExceptionRegistry


  • public class IgniteExceptionRegistry
    extends Object
    Utility to collect suppressed errors within internal code.
    • Method Detail

      • onException

        public void onException​(String msg,
                                Throwable e)
        Puts exception into queue. Thread-safe.
        Parameters:
        msg - Message that describe reason why error was suppressed.
        e - Exception.
      • getErrors

        public List<IgniteExceptionRegistry.ExceptionInfo> getErrors​(long order)
        Gets suppressed errors.
        Parameters:
        order - Order number to filter errors.
        Returns:
        List of exceptions that happened after specified order.
      • setMaxSize

        public void setMaxSize​(int maxSize)
        Sets max size. Default value DEFAULT_QUEUE_SIZE
        Parameters:
        maxSize - Max size.
      • printErrors

        public void printErrors​(IgniteLogger log)
        Prints errors.
        Parameters:
        log - Logger.
      • errorCount

        public long errorCount()
        Errors count.
        Returns:
        Errors count.