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 log.voidaddErrorLog(String message) Add error log.voidAdd error log.Get errorLogs.static ErrorLogCollectionGet singleton instance of ErrorLogCollection.booleanisEmpty()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
-