Serializable
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 | Description |
---|---|
UserQuestionException() |
Creates new exception UserQuestionException
|
UserQuestionException(String s) |
Creates new exception UserQuestionException with text specified
string s.
|
Modifier and Type | Method | Description |
---|---|---|
abstract void |
confirmed() |
Invoke the action if the user confirms the action.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
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 existsBuilt on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.