Class ErrorLogCollection

java.lang.Object
de.qytera.qtaf.core.log.model.error.ErrorLogCollection

public class ErrorLogCollection extends Object
Collection for error log messages
  • Method Details

    • getInstance

      public static ErrorLogCollection getInstance()
      Get singleton instance of ErrorLogCollection
      Returns:
      ErrorLogCollection
    • getErrorLogs

      public ArrayList<ErrorLog> getErrorLogs()
      Get errorLogs
      Returns:
      errorLogs
    • addErrorLog

      public void addErrorLog(Throwable t)
      Add error log
      Parameters:
      t - Throwable exception
    • addErrorLog

      public void addErrorLog(ErrorLog errorLog)
      Add error log
      Parameters:
      errorLog - Error log
    • addErrorLog

      public void addErrorLog(String message)
      Add error log
      Parameters:
      message - Error message
    • isEmpty

      public boolean isEmpty()
      Check if there are no error logs
      Returns:
      True if there are no error logs, false otherwise