org.omegahat.Environment.Databases
Class IncorrectTypeException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--org.omegahat.Environment.Databases.IncorrectTypeException
All Implemented Interfaces:
java.io.Serializable

public class IncorrectTypeException
extends java.lang.Exception

Exception used to indicate an attempt to assign to an Omegahat variable a value that is not of the correct type.

See Also:
TypedDatabase., Serialized Form

Field Summary
protected  java.lang.Class assigned
           
protected  java.lang.Class type
           
protected  java.lang.String varName
           
 
Constructor Summary
IncorrectTypeException()
           
IncorrectTypeException(java.lang.String msg)
           
IncorrectTypeException(java.lang.String name, java.lang.Class src, java.lang.Class in)
           
IncorrectTypeException(java.lang.String msg, IncorrectTypeException ex)
           
 
Method Summary
 java.lang.Class assigned()
           
 java.lang.Class assigned(java.lang.Class c)
           
 java.lang.Class type()
           
 java.lang.Class type(java.lang.Class t)
           
 java.lang.String variable()
           
 java.lang.String variable(java.lang.String name)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

varName

protected java.lang.String varName

type

protected java.lang.Class type

assigned

protected java.lang.Class assigned
Constructor Detail

IncorrectTypeException

public IncorrectTypeException()

IncorrectTypeException

public IncorrectTypeException(java.lang.String msg,
                              IncorrectTypeException ex)

IncorrectTypeException

public IncorrectTypeException(java.lang.String name,
                              java.lang.Class src,
                              java.lang.Class in)

IncorrectTypeException

public IncorrectTypeException(java.lang.String msg)
Method Detail

variable

public java.lang.String variable()

variable

public java.lang.String variable(java.lang.String name)

type

public java.lang.Class type()

type

public java.lang.Class type(java.lang.Class t)

assigned

public java.lang.Class assigned()

assigned

public java.lang.Class assigned(java.lang.Class c)