public abstract class UserQuestionException
extends java.io.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(java.lang.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.
|
public UserQuestionException()
public UserQuestionException(java.lang.String s)
s - the text describing the exceptionBuilt on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.