Package | Description |
---|---|
org.openstreetmap.josm.tools.bugreport |
Provides classes for the bug report system, allowing users to create tickets on issue tracker directly from JOSM.
|
Modifier and Type | Field and Description |
---|---|
private ReportedException |
BugReport.exception |
Modifier and Type | Field and Description |
---|---|
private java.util.function.BiFunction<ReportedException,java.lang.Integer,BugReportQueue.SuppressionMode> |
BugReportQueue.bugReportHandler |
private java.util.concurrent.CopyOnWriteArrayList<java.util.function.Predicate<ReportedException>> |
BugReportQueue.handlers |
private java.util.LinkedList<ReportedException> |
BugReportQueue.reportsToDisplay |
private java.util.ArrayList<ReportedException> |
BugReportQueue.suppressFor |
Modifier and Type | Method and Description |
---|---|
private ReportedException |
BugReportQueue.getNext() |
static ReportedException |
BugReport.intercept(java.lang.Throwable t)
This should be called whenever you want to add more information to a given exception.
|
ReportedException |
ReportedException.put(java.lang.String key,
java.lang.Object value)
Adds some debug values to this exception.
|
ReportedException |
ReportedException.put(java.lang.String key,
java.util.function.Supplier<java.lang.Object> valueSupplier)
Adds some debug values to this exception.
|
Modifier and Type | Method and Description |
---|---|
private static java.util.function.BiFunction<ReportedException,java.lang.Integer,BugReportQueue.SuppressionMode> |
BugReportQueue.getBestHandler() |
Modifier and Type | Method and Description |
---|---|
private BugReportQueue.SuppressionMode |
BugReportQueue.displayFor(ReportedException e) |
private void |
BugReportQueue.handleDialogResult(ReportedException e,
BugReportQueue.SuppressionMode suppress) |
boolean |
ReportedException.isSame(ReportedException e)
Checks if this exception is considered the same as an other exception.
|
static BugReportQueue.SuppressionMode |
BugReportDialog.showFor(ReportedException e,
int exceptionCounter)
Show the bug report for a given exception
|
void |
BugReportQueue.submit(ReportedException report)
Submit a new error to be displayed
|
Modifier and Type | Method and Description |
---|---|
void |
BugReportQueue.addBugReportHandler(java.util.function.Predicate<ReportedException> handler)
Allows you to peek or even intersect the bug reports.
|
Constructor and Description |
---|
BugReport(ReportedException e)
Create a new bug report
|