public class ErrorsBuffer
extends java.lang.Object
| Constructor and Description |
|---|
ErrorsBuffer()
Instantiates a new errors buffer with default capacity.
|
ErrorsBuffer(int capacity)
Instantiates a new errors buffer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCriticalError(java.lang.Throwable exception)
Adds the critical error.
|
void |
addError(java.lang.Throwable exception)
Adds the error.
|
void |
addError(java.lang.Throwable exception,
boolean isCritical)
Adds error to the buffer.
|
java.util.List<java.lang.String> |
getErrors()
Returns the list of errors that are in the buffer.
|
public ErrorsBuffer()
public ErrorsBuffer(int capacity)
capacity - the capacitypublic void addError(java.lang.Throwable exception)
exception - the exceptionpublic void addCriticalError(java.lang.Throwable exception)
exception - the exceptionpublic void addError(java.lang.Throwable exception,
boolean isCritical)
exception - the exceptionisCritical - the is criticalpublic java.util.List<java.lang.String> getErrors()