Module is.codion.swing.common.ui
Package is.codion.swing.common.ui.dialog
Interface ExceptionDialogBuilder
- All Superinterfaces:
DialogBuilder<ExceptionDialogBuilder>
An exception dialog builder.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PropertyValue<Boolean>
Specifies whether an ExceptionPanel should include system properties in the detail panel
Value type: Boolean
Default value: truestatic final PropertyValue<List<Class<? extends Throwable>>>
Specifies a list of exception types, which are considered wrapping exceptions, that is, exceptions that wrap a root cause.
By default root cause exceptions are unwrapped before being displayed, in order to simplify the error message and stack trace.
Replace with an empty list in order to disable unwrapping altogether.
Value type: String list
Default value: RemoteException, RuntimeException, InvocationTargetException, ExceptionInInitializerError, UndeclaredThrowableException -
Method Summary
Modifier and TypeMethodDescriptionvoid
Displays the exception dialogsystemProperties
(boolean systemProperties) unwrap
(boolean unwrap) unwrap
(Collection<Class<? extends Throwable>> exceptions) Methods inherited from interface is.codion.swing.common.ui.dialog.DialogBuilder
icon, keyEvent, location, locationRelativeTo, owner, owner, title, titleProvider
-
Field Details
-
SYSTEM_PROPERTIES
Specifies whether an ExceptionPanel should include system properties in the detail panel
Value type: Boolean
Default value: true -
WRAPPER_EXCEPTIONS
Specifies a list of exception types, which are considered wrapping exceptions, that is, exceptions that wrap a root cause.
By default root cause exceptions are unwrapped before being displayed, in order to simplify the error message and stack trace.
Replace with an empty list in order to disable unwrapping altogether.
Value type: String list
Default value: RemoteException, RuntimeException, InvocationTargetException, ExceptionInInitializerError, UndeclaredThrowableException
-
-
Method Details
-
message
- Parameters:
message
- the message to display- Returns:
- this builder instance
-
unwrap
- Parameters:
unwrap
- false if exception unwrapping should not be performed- Returns:
- this builder instance
-
unwrap
- Parameters:
exceptions
- the exceptions to unwrap before displaying- Returns:
- this builder instance
- See Also:
-
systemProperties
- Parameters:
systemProperties
- true if system properties should be displayed- Returns:
- this builder instance
- See Also:
-
show
Displays the exception dialog- Parameters:
exception
- the exception to display
-