Class ConfigExceptionBuffer

java.lang.Object
net.morimekta.config.ConfigExceptionBuffer

public class ConfigExceptionBuffer extends Object
A small utility buffer class for accumulating exceptions and passing as a config exception if any happens.
  • Constructor Details

    • ConfigExceptionBuffer

      public ConfigExceptionBuffer()
  • Method Details

    • update

      public void update(Exception e)
      Add exception to the buffer.
      Parameters:
      e - Exception to add.
    • throwIfPresent

      public void throwIfPresent() throws ConfigException
      Throw the accumulated exception, if it has an exception.
      Throws:
      ConfigException - The accumulated exception if present.