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
| 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 |
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.
StatsException
public StatsException(java.lang.String n,
int t)
- Create an exception with certain name and type.
getMessage
public java.lang.String getMessage()
- Create an appropriate error message for the exception.
- Overrides:
- getMessage in class java.lang.Throwable