| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private JScrollPane | |
| private final Throwable | |
| private static final List | |
| private static final String | |
| private boolean | |
| private final JComponent | |
| private final JComponent | |
| private static final Dimension | |
| private static final String | |
| private boolean | |
| private JTextPane | |
| private static final Dimension | |
| private static final Dimension |
| Access | Constructor and Description |
|---|---|
| public | ErrorDialog(Throwable
the exception to display t)Creates a modal dialog to display the given exception message. |
| public | ErrorDialog(JComponent
if non-null, then the dialog is positioned (centered) w.r.t. this component owner, Throwable the exception to display t)Creates a modal dialog to display the given exception message. |
| public | ErrorDialog(JComponent
if non-null, then the dialog is positioned (centered) w.r.t. this component owner, Icon the icon to display icon, Throwable the exception to display t)Creates a modal dialog to display the given exception message. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv final JComponent | createContent()
Creates the display with the top-level exception message followed by a pane (that toggles) for detailed stack traces. |
| pack-priv JScrollPane | |
| pack-priv final JComponent | |
| pack-priv StringBuilder | generateStackTrace(Throwable t, StringBuilder buffer)
Recursively print the stack trace on the given buffer. |
| private boolean | isSuppressed(String className)
Affirms if the error messages from the given class name is to be suppressed. |
| pack-priv static void | |
| pack-priv StringBuilder |
| BORDER_SIZE | back to summary |
|---|---|
| private static final int BORDER_SIZE | |
| details | back to summary |
|---|---|
| private JScrollPane details | |
| error | back to summary |
|---|---|
| private final Throwable error | |
| FILTERS | back to summary |
|---|---|
| private static final List<String> FILTERS | |
| INDENT | back to summary |
|---|---|
| private static final String INDENT | |
| isFiltering | back to summary |
|---|---|
| private boolean isFiltering | |
| main | back to summary |
|---|---|
| private final JComponent main | |
| message | back to summary |
|---|---|
| private final JComponent message | |
| MESSAGE_SIZE | back to summary |
|---|---|
| private static final Dimension MESSAGE_SIZE | |
| NEWLINE | back to summary |
|---|---|
| private static final String NEWLINE | |
| showingDetails | back to summary |
|---|---|
| private boolean showingDetails | |
| stacktrace | back to summary |
|---|---|
| private JTextPane stacktrace | |
| STACKTRACE_SIZE | back to summary |
|---|---|
| private static final Dimension STACKTRACE_SIZE | |
| TOTAL_SIZE | back to summary |
|---|---|
| private static final Dimension TOTAL_SIZE | |
| ErrorDialog | back to summary |
|---|---|
| public ErrorDialog(Throwable t) Creates a modal dialog to display the given exception message.
| |
| ErrorDialog | back to summary |
|---|---|
| public ErrorDialog(JComponent owner, Throwable t) Creates a modal dialog to display the given exception message.
| |
| ErrorDialog | back to summary |
|---|---|
| public ErrorDialog(JComponent owner, Icon icon, Throwable t) Creates a modal dialog to display the given exception message.
| |
| createContent | back to summary |
|---|---|
| pack-priv final JComponent createContent() Creates the display with the top-level exception message followed by a pane (that toggles) for detailed stack traces. | |
| createDetailedMessage | back to summary |
|---|---|
| pack-priv JScrollPane createDetailedMessage() Creates a non-editable widget to display the detailed stack trace. | |
| createErrorMessage | back to summary |
|---|---|
| pack-priv final JComponent createErrorMessage(Throwable t) Creates a non-editable widget to display the error message. | |
| generateStackTrace | back to summary |
|---|---|
| pack-priv StringBuilder generateStackTrace(Throwable t, StringBuilder buffer) Recursively print the stack trace on the given buffer. | |
| isSuppressed | back to summary |
|---|---|
| private boolean isSuppressed(String className) Affirms if the error messages from the given class name is to be suppressed. | |
| position | back to summary |
|---|---|
| pack-priv static void position(Component c, Component parent) Position the given component at the center of the given parent component or physical screen. | |
| toString | back to summary |
|---|---|
| pack-priv StringBuilder toString(StackTraceElement[] traces) | |