|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object extended byjava.lang.Throwable extended byjava.lang.Exception extended byptolemy.kernel.util.KernelException extended byptolemy.kernel.util.NameDuplicationException
Thrown on an attempt to add a named object to a collection that requires unique names, and finding that there already is an object by that name in the collection. Constructors are provided that take 1 or 2 Nameable references plus an arbitrary String. The constructors are robust in that null references are ignored. The preferred constructors are those that take two named objects (the container and the would-be containee), or two named objects and an arbitrary string (which can be used to provide additional information about the error).
This class has no constructors that take a Throwable cause because no such constructors have been needed, but in principle, such constructors could be added if needed.
| Constructor Summary | |
NameDuplicationException(Nameable container,
Nameable wouldBeContainee)
Construct an exception with a message that includes the name of the would be containee and the would be container. |
|
NameDuplicationException(Nameable container,
Nameable wouldBeContainee,
java.lang.String detail)
Construct an exception with a detail message that includes the name of the would be containee and the would be container plus the third argument string. |
|
NameDuplicationException(Nameable container,
java.lang.String detail)
Construct an exception with a detail message that includes the name of the first argument. |
|
| Methods inherited from class ptolemy.kernel.util.KernelException |
_setCause, _setMessage, generateMessage, generateMessage, generateMessage, getCause, getFullName, getMessage, getName, printStackTrace, printStackTrace, printStackTrace, stackTraceToString |
| 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 NameDuplicationException(Nameable container, java.lang.String detail)
container - The would be container.detail - The message.public NameDuplicationException(Nameable container, Nameable wouldBeContainee)
wouldBeContainee - The would be containee.container - The would be container.public NameDuplicationException(Nameable container, Nameable wouldBeContainee, java.lang.String detail)
wouldBeContainee - The would be containee.container - The would be container.detail - A message.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||