com.ibm.events.catalog
Class ParentNotValidException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--com.ibm.events.EventsException
|
+--com.ibm.events.catalog.CatalogException
|
+--com.ibm.events.catalog.ParentNotValidException
- All Implemented Interfaces:
- java.io.Serializable
- public class ParentNotValidException
- extends CatalogException
Thrown when an attempt is made to add an event definition to the event
catalog that does not name a valid parent. This can occur in the following
situations:
-
The event definition names as its parent an event definition that does not
exist in the event catalog.
-
The event definition is a root (it names no parent) but a
root event definition already exists in the event catalog.
-
An existing event definition of the same name is being replaced and the
parent named in the replacement is not the parent of the existing event
definition. In other words, an attempt is being made to place the event
definition at a different point in the hierarchy.
- Since:
- 5.1.0
- Version:
- 1.7 6/9/04
- See Also:
- Serialized Form
Constructor Summary |
ParentNotValidException(EventDefinition definition,
java.lang.String key,
java.lang.String file,
java.lang.Object[] parms)
Constructs a new ParentNotValidException with a reference to the event
definition that was being added. |
Methods inherited from class com.ibm.events.EventsException |
getCause, getFile, getKey, getLocalizedMessage, getLocalizedMessage, getMessage, getParms, initCause, printStackTrace, printStackTrace, printStackTrace |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ParentNotValidException
public ParentNotValidException(EventDefinition definition,
java.lang.String key,
java.lang.String file,
java.lang.Object[] parms)
- Constructs a new ParentNotValidException with a reference to the event
definition that was being added. See
EventsException.EventsException(String, String,
Object[])
for more information.
- Parameters:
definition
- The event definition that was being added.key
- The message key.file
- The name of the message file to use.parms
- An array of elements to be inserted into the
message.
getEventDefinition
public EventDefinition getEventDefinition()
- Returns the event definition that was being added when the exception was
thrown.
- Returns:
- The event definition.