All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class EDU.bmrb.starlibj.WrongElementType

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

public class WrongElementType
extends 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

Variable Index

 o msg

Constructor Index

 o WrongElementType(Vector, String)
Give the vector of legal classes, and the class that was being attempted, so the error message can be descriptive.

Method Index

 o getMessage()
The message that will be printed

Variables

 o msg
 protected String msg

Constructors

 o WrongElementType
 public WrongElementType(Vector classes,
                         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.

Methods

 o getMessage
 public String getMessage()
The message that will be printed

Overrides:
getMessage in class Throwable

All Packages  Class Hierarchy  This Package  Previous  Next  Index