edu.virginia.cs.mng.hypercast
Class StatsException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--edu.virginia.cs.mng.hypercast.StatsException

public class StatsException
extends java.lang.Exception

StatsException is used to throw errors associated with the I_Stats interface.

See Also:
Serialized Form

Field Summary
static int ChildSchemaViolatedFormatSpec
          value for type.
static int InappropriateType
          value for type.
static int InappropriateValue
          value for type E.g.
(package private)  java.lang.String name
          If available, the name of the parameter that caused the exception.
static int StatisticNotFound
          value for type.
(package private)  int type
          Any of appropriate static values.
static int WriteToAReadOnlyValue
          value for type.
 
Fields inherited from class java.lang.Throwable
backtrace, detailMessage, serialVersionUID
 
Constructor Summary
StatsException(java.lang.String n, int t)
          Create an exception with certain name and type.
 
Method Summary
 java.lang.String getMessage()
          Create an appropriate error message for the exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, printStackTrace, printStackTrace, printStackTrace, printStackTrace0, toString
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

StatisticNotFound

public static final int StatisticNotFound
value for type.

WriteToAReadOnlyValue

public static final int WriteToAReadOnlyValue
value for type.

ChildSchemaViolatedFormatSpec

public static final int ChildSchemaViolatedFormatSpec
value for type. Indicates that the child object's schema contained errors.

InappropriateType

public static final int InappropriateType
value for type. E.g. expected an integer and was passed letters.

InappropriateValue

public static final int InappropriateValue
value for type E.g. was negative when expected a positive integer.

name

java.lang.String name
If available, the name of the parameter that caused the exception.

type

int type
Any of appropriate static values.
Constructor Detail

StatsException

public StatsException(java.lang.String n,
                      int t)
Create an exception with certain name and type.
Method Detail

getMessage

public java.lang.String getMessage()
Create an appropriate error message for the exception.
Overrides:
getMessage in class java.lang.Throwable