- 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 Summary
Constructors Constructor Description ConfigExceptionBuffer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidthrowIfPresent()Throw the accumulated exception, if it has an exception.voidupdate(Exception e)Add exception to the buffer.
-
-
-
Method Detail
-
update
public void update(Exception e)
Add exception to the buffer.- Parameters:
e- Exception to add.
-
throwIfPresent
public void throwIfPresent() throws ConfigExceptionThrow the accumulated exception, if it has an exception.- Throws:
ConfigException- The accumulated exception if present.
-
-