public class ComponentAddonTools
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static YouScopeFrame |
displayConfigurationInvalid(ConfigurationException configurationException,
YouScopeClient client)
Creates a frame containing the error messages of a
ConfigurationException . |
public static YouScopeFrame displayConfigurationInvalid(ConfigurationException configurationException, YouScopeClient client)
ConfigurationException
. A ConfigurationException is not thrown to signal an error
in YouScope, but to signal to the user that the current state of a configuration is invalid. Thus, it should not be treated as an error.
This function should only be called when the user actually tried to finish a configuration, or tried to get to
a part of the configuration which cannot be accessed while another part is not corrected.
The newly create frame is yet not shown. Call YouScopeFrame.setVisible(boolean)
to show frame. Typically, one also calls
YouScopeFrame.addModalChildFrame(YouScopeFrame)
on the parent frame before, with the returned frame as argument.configurationException
- The configuration exception which occurred.client
- The YouScope client