|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.tensegrity.generic.util.StaticException
com.tensegrity.generic.util.metric.MetricExpressionParserException
* The MetricParserException is thrown whenever
an error occurs during the metric expression parsing.
| Field Summary | |
static int |
REASON_INVALID_VALUE
constant that indicates an invalid given value enum.value MetricExpressionParserException_Reason |
static int |
REASON_MALFORMED_EXPRESSION
constant that indicates a malformed expression enum.value MetricExpressionParserException_Reason |
static int |
REASON_MALFORMED_UNITABBREVIATION
constant that indicates a malformed unit abbreviation for the expression enum.value MetricExpressionParserException_Reason |
static int |
REASON_NULL
constant that indicates the given value to parse was null
enum.value MetricExpressionParserException_Reason |
static int |
REASON_UNKNOWN
constant that indicates an unknown reason for the exception enum.value MetricExpressionParserException_Reason |
| Constructor Summary | |
MetricExpressionParserException(java.lang.String description)
Deprecated. specify a reason id. |
|
MetricExpressionParserException(java.lang.String description,
int reasonID,
java.lang.String expression)
Constructor for MetricParserException with
a description given by description and a reason ID, which lets
receivers of this Exceptions do a classification. |
|
| Method Summary | |
java.lang.String |
getExpression()
Return the string representation of a metric expression that has caused the MetricExpressionParserException while it has been
parsed. |
int |
getReasonID()
Returns the current reason identifier for this Exception. |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int REASON_UNKNOWN
public static final int REASON_NULL
null
enum.value MetricExpressionParserException_Reason
public static final int REASON_INVALID_VALUE
public static final int REASON_MALFORMED_EXPRESSION
public static final int REASON_MALFORMED_UNITABBREVIATION
| Constructor Detail |
public MetricExpressionParserException(java.lang.String description)
MetricParserException with
a description given by description
description - textual description about the cause of the
exception
public MetricExpressionParserException(java.lang.String description,
int reasonID,
java.lang.String expression)
MetricParserException with
a description given by description and a reason ID, which lets
receivers of this Exceptions do a classification.
description - textual description about the reason for this exception.reasonID - an identifier describing the category of this exception.expression - the current expression the parser could not compute.REASON_MALFORMED_UNITABBREVIATION,
REASON_INVALID_VALUE,
REASON_MALFORMED_EXPRESSION,
REASON_NULL| Method Detail |
public int getReasonID()
REASON_MALFORMED_UNITABBREVIATION,
REASON_INVALID_VALUE,
REASON_MALFORMED_EXPRESSION,
REASON_NULLpublic java.lang.String getExpression()
MetricExpressionParserException while it has been
parsed.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||