Class ErrorTracker
java.lang.Object
com.qaitsolutions.pframe.core.assertion.ErrorTracker
Entity tracks errors from assertions and stores them.
- Since:
- 1.0
- Author:
- Iulian Andrei (iulian.andrei@qaitsolutions.com)
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ErrorTracker
public ErrorTracker()
-
-
Method Details
-
addError
Inserts error to tracker.- Parameters:
message
- Description of error.e
- Actual thrown error.
-
addError
Inserts error to tracker.- Parameters:
message
- Description of error.
-
addError
Inserts error to tracker.- Parameters:
e
- Actual thrown error.
-
getErrorsAsString
Retrieves all errors and returns them as aString
.- Returns:
String
containing all errors.
-
containsErrors
public boolean containsErrors()Checks if errors are present in Tracker.- Returns:
- True if tracker contains errors, False if tracker doesn't contain errors.
-
clear
public void clear()Removes all stored errors.
-