Class TrackedError
java.lang.Object
io.github.projectunified.faststats.errortracker.TrackedError
An error report with tracking metadata.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a copy of the additional error attributes.attributes(Consumer<Map<String, Object>> consumer) Modifies the additional error attributes using a consumer.attributes(Supplier<Map<String, Object>> supplier) Sets the additional error attributes using a supplier.attributes(Map<String, Object> attributes) Sets the additional error attributes.booleanerror()Returns the tracked error.booleanhandled()Returns whether the error was handled.handled(boolean handled) Sets whether the error was handled.inthashCode()
-
Constructor Details
-
TrackedError
-
-
Method Details
-
error
-
handled
public boolean handled()Returns whether the error was handled.- Returns:
- whether the error was handled
-
handled
Sets whether the error was handled.- Parameters:
handled- whether the error was handled- Returns:
- this tracked error
-
attributes
-
attributes
Sets the additional error attributes.- Parameters:
attributes- the additional error attributes- Returns:
- this tracked error
-
attributes
Modifies the additional error attributes using a consumer.- Parameters:
consumer- the consumer to modify attributes- Returns:
- this tracked error
-
attributes
Sets the additional error attributes using a supplier.- Parameters:
supplier- the supplier of attributes- Returns:
- this tracked error
-
equals
-
hashCode
-