Overview Package Class Tree Deprecated Index Help
PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

ptolemy.util
Class CancelException

java.lang.Object
 extended byjava.lang.Throwable
 extended byjava.lang.Exception
 extended byptolemy.util.CancelException
All Implemented Interfaces:
java.io.Serializable

public class CancelException
extends java.lang.Exception

An exception that is not reported to the user. This exception can be used to cancel an ongoing operation. It works together with MessageHandler, where it might be thrown when the user clicks "cancel" in a dialog box. Throwing an exception allows the execution environment to unwind the stack, cancelling operations that may only lead to an endless stream of warnings or errors. This class is really just a marker, and is intended to not be reported to the user.

Since:
Ptolemy II 4.0
Version:
$Id: CancelException.java,v 1.12 2005年07月14日 20:45:05 cxh Exp $
Author:
Edward A. Lee
See Also:
MessageHandler, Serialized Form
Accepted Rating:
Green (janneck)
Proposed Rating:
Green (eal)

Constructor Summary
CancelException()
Construct an exception with a default message.
CancelException(java.lang.String message)
Construct an exception with the specified message.
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail

CancelException

public CancelException()
Construct an exception with a default message.


CancelException

public CancelException(java.lang.String message)
Construct an exception with the specified message.

Parameters:
message - The message.

Overview Package Class Tree Deprecated Index Help
PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

AltStyle によって変換されたページ (->オリジナル) /