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
-
msg
-
-
WrongElementType(Vector, String)
- Give the vector of legal classes, and the class that
was being attempted, so the error message can be
descriptive.
-
getMessage()
- The message that will be printed
msg
protected String msg
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.
getMessage
public String getMessage()
- The message that will be printed
- Overrides:
- getMessage in class Throwable
All Packages Class Hierarchy This Package Previous Next Index