jcreek.representation
Class NoSuchRelationException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjcreek.util.CreekException
              extended byjcreek.representation.NoSuchRelationException
All Implemented Interfaces:
java.io.Serializable

public class NoSuchRelationException
extends CreekException

Title: NoSuchRelationException Description: Copyright: Copyright (c) 2002 Company: NTNU

Version:
1.0
Author:
Frode Sørmo
See Also:
Serialized Form

Constructor Summary
NoSuchRelationException(RelationType[] rcd, Entity ent)
          Creates a new NoSuchRelationException.
NoSuchRelationException(RelationType rcd, Entity ent)
          Creates a new NoSuchRelationException.
 
Method Summary
 Entity getEntity()
          Returns the entity in which the relation could not be found.
 RelationType getRelationType()
          Returns the relation type that could not be found.
 RelationType[] getRelationTypes()
          Returns the relation types that could not be found.
 
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

NoSuchRelationException

public NoSuchRelationException(RelationType rcd,
                               Entity ent)
Creates a new NoSuchRelationException.

Parameters:
rcd - The type of the relation not found.
ent - The enity this relation type was not found in.

NoSuchRelationException

public NoSuchRelationException(RelationType[] rcd,
                               Entity ent)
Creates a new NoSuchRelationException.

Parameters:
rcd - The arrays of types of the relation not found.
ent - The enity this relation type was not found in.
Method Detail

getRelationType

public RelationType getRelationType()
Returns the relation type that could not be found.


getRelationTypes

public RelationType[] getRelationTypes()
Returns the relation types that could not be found.


getEntity

public Entity getEntity()
Returns the entity in which the relation could not be found.



Created at IDI, NTNU by the Artificial Intelligence and Learning group