EDU.bmrb.starlibj
Class WrongElementType

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--EDU.bmrb.starlibj.WrongElementType

public class WrongElementType
extends java.lang.RuntimeException

Thrown when an attempt is made to insert an element into the vector that is not one of the types that was designated with addType()

See Also:
addType, Serialized Form

Field Summary
protected  java.lang.String msg
           
 
Constructor Summary
WrongElementType(java.util.Vector classes, java.lang.String attempt)
          Give the vector of legal classes, and the class that was being attempted, so the error message can be descriptive.
 
Method Summary
 java.lang.String getMessage()
          The message that will be printed
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

msg

protected java.lang.String msg
Constructor Detail

WrongElementType

public WrongElementType(java.util.Vector classes,
                        java.lang.String attempt)
Give the vector of legal classes, and the class that was being attempted, so the error message can be descriptive.
Parameters:
classes - = vector of full string names for class.
attempt - = string name of the attempted class.
Method Detail

getMessage

public java.lang.String getMessage()
The message that will be printed
Overrides:
getMessage in class java.lang.Throwable