public abstract class UserQuestionException extends IOException
The getLocalizedMessage
method should return the user question,
which will be shown to the user in a dialog with OK, Cancel options and
if the user chooses OK, method ex.confirmed ()
will be called.
Since version 8.29 one can just catch the exception and report it to the
infrastructure of any NetBeans Platform based application (for example
via Exceptions.printStackTrace(java.lang.Throwable)
) and the
question dialog will be displayed automatically.
Constructor and Description |
---|
UserQuestionException()
Creates new exception UserQuestionException
|
UserQuestionException(String s)
Creates new exception UserQuestionException with text specified
string s.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
confirmed()
Invoke the action if the user confirms the action.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public UserQuestionException()
public UserQuestionException(String s)
s
- the text describing the exceptionpublic abstract void confirmed() throws IOException
IOException
- if another I/O problem exists