|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
ptolemy.kernel.util.KernelRuntimeException
ptolemy.kernel.util.InvalidStateException
public class InvalidStateException
Some object or set of objects has a state that is not permitted. E.g., a NamedObj has a null name. Or a topology has inconsistent or contradictory information in it, e.g. an entity contains a port that has a different entity as it container. Our design should make it impossible for this exception to ever occur, so occurrence is a bug.
Green (cxh) |
Green (cxh) |
Constructor Summary | |
---|---|
InvalidStateException(java.util.Collection objects,
java.lang.String detail)
Constructs an exception with a detail message that includes the names of a collection of nameable objects plus the argument string. |
|
InvalidStateException(java.util.Collection objects,
java.lang.Throwable cause,
java.lang.String detail)
Constructs an exception with a detail message that includes the names of a collection of nameable objects plus the argument string. |
|
InvalidStateException(java.util.Enumeration objects,
java.lang.String detail)
Deprecated. Use InvalidStateException(Collection, String) instead. |
|
InvalidStateException(Nameable object1,
Nameable object2,
java.lang.String detail)
Construct an exception with a detail message that includes the names of the first two arguments plus the third argument string. |
|
InvalidStateException(Nameable object1,
Nameable object2,
java.lang.Throwable cause,
java.lang.String detail)
Construct an exception with a detail message that includes the names of the first two arguments plus the third argument string. |
|
InvalidStateException(Nameable object,
java.lang.String detail)
Construct an exception with a detail message that includes the name of the first argument and the second argument string. |
|
InvalidStateException(Nameable object,
java.lang.Throwable cause,
java.lang.String detail)
Construct an exception with a detail message that includes the name of the first argument, the cause and the third argument string. |
|
InvalidStateException(java.lang.String detail)
Construct an exception with only a detail message. |
Method Summary | |
---|---|
private static java.util.List |
_list(java.util.Enumeration objects)
|
Methods inherited from class ptolemy.kernel.util.KernelRuntimeException |
---|
_setCause, _setMessage, getCause, getMessage, getNameables, printStackTrace, printStackTrace, printStackTrace |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public InvalidStateException(java.lang.String detail)
detail
- The message.public InvalidStateException(Nameable object, java.lang.Throwable cause, java.lang.String detail)
object
- The nameable object involved in the exceptioncause
- The cause of this exception.detail
- The message.public InvalidStateException(Nameable object, java.lang.String detail)
object
- The object.detail
- The message.public InvalidStateException(Nameable object1, Nameable object2, java.lang.String detail)
object1
- The first object.object2
- The second object.detail
- The message.public InvalidStateException(Nameable object1, Nameable object2, java.lang.Throwable cause, java.lang.String detail)
object1
- The first object.object2
- The second object.cause
- The cause of this exception.detail
- The message.public InvalidStateException(java.util.Enumeration objects, java.lang.String detail)
objects
- The enumeration of Nameable objectsdetail
- The message.public InvalidStateException(java.util.Collection objects, java.lang.String detail)
objects
- The Collection of Nameable objectsdetail
- The message.public InvalidStateException(java.util.Collection objects, java.lang.Throwable cause, java.lang.String detail)
objects
- The Collection of Nameable objectscause
- The cause of this exception.detail
- The message.Method Detail |
---|
private static java.util.List _list(java.util.Enumeration objects)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |