Class ErrorLogCollection
java.lang.Object
de.qytera.qtaf.core.log.model.error.ErrorLogCollection
Collection for error log messages
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddErrorLog(ErrorLog errorLog) Add error logvoidaddErrorLog(String message) Add error logvoidAdd error logGet errorLogsstatic ErrorLogCollectionGet singleton instance of ErrorLogCollectionbooleanisEmpty()Check if there are no error logs
-
Method Details
-
getInstance
Get singleton instance of ErrorLogCollection- Returns:
- ErrorLogCollection
-
getErrorLogs
Get errorLogs- Returns:
- errorLogs
-
addErrorLog
Add error log- Parameters:
t- Throwable exception
-
addErrorLog
Add error log- Parameters:
errorLog- Error log
-
addErrorLog
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
-