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.
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 existsBuilt on January 27 2012. | Portions Copyright 1997-2012 Sun Microsystems, Inc. All rights reserved.