SMILA (incubation) API documentation

org.eclipse.smila.management.error
Class ErrorsBuffer

java.lang.Object
  extended by org.eclipse.smila.management.error.ErrorsBuffer

public class ErrorsBuffer
extends java.lang.Object

The Class ErrorsBuffer.


Constructor Summary
ErrorsBuffer()
          Instantiates a new errors buffer with default capacity.
ErrorsBuffer(int capacity)
          Instantiates a new errors buffer.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ErrorsBuffer

public ErrorsBuffer()
Instantiates a new errors buffer with default capacity.


ErrorsBuffer

public ErrorsBuffer(int capacity)
Instantiates a new errors buffer.

Parameters:
capacity - the capacity
Method Detail

addError

public void addError(java.lang.Throwable exception)
Adds the error.

Parameters:
exception - the exception

addCriticalError

public void addCriticalError(java.lang.Throwable exception)
Adds the critical error.

Parameters:
exception - the exception

addError

public void addError(java.lang.Throwable exception,
                     boolean isCritical)
Adds error to the buffer.

Parameters:
exception - the exception
isCritical - the is critical

getErrors

public java.util.List<java.lang.String> getErrors()
Returns the list of errors that are in the buffer. This method is exposed for management.

Returns:
the errors

SMILA (incubation) API documentation