Class ExceptionRegistry

Object
ExceptionRegistry
All Implemented Interfaces:
Iterable<Exception>

public class ExceptionRegistry extends Object implements Iterable<Exception>
  • Constructor Details

    • ExceptionRegistry

      public ExceptionRegistry(boolean throwException)
  • Method Details

    • fail

      public boolean fail(RuntimeException exception)
    • tryExecute

      public <T> T tryExecute(Supplier<T> function)
    • getCount

      public int getCount()
    • iterator

      public Iterator<Exception> iterator()
      Specified by:
      iterator in interface Iterable<Exception>
    • clear

      public void clear()
    • getExceptions

      public List<Exception> getExceptions()
    • getTryBuffer

      public List<Exception> getTryBuffer()
    • isThrowException

      public boolean isThrowException()
    • getCutoffLimit

      public int getCutoffLimit()
    • setThrowException

      public void setThrowException(boolean throwException)
    • setCutoffLimit

      public void setCutoffLimit(int cutoffLimit)