public class SDMetricsException
extends java.lang.RuntimeException
If this exception is thrown, it is always due to a bug in the metric definition file (typos, a required attribute is missing, an unknown metric is requested etc.) The only way to fix the problem is then to edit the metric definition file.
For a correct metric definition file, this exception will never be thrown. So unless users write their own metric definitions (and invariably make mistakes in the process), they should never experience any such errors during calculation.
Constructor and Description |
---|
SDMetricsException(ModelElement element,
MetricEntry entry,
java.lang.Exception cause)
Constructor with an exception to be chained.
|
SDMetricsException(ModelElement element,
MetricEntry entry,
java.lang.String message)
Constructor with message.
|
Modifier and Type | Method and Description |
---|---|
ModelElement |
getElement()
Gets the model element that caused the problem.
|
MetricEntry |
getMetricEntry()
Gets the metric, set, rule, or matrix that caused the problem.
|
public SDMetricsException(ModelElement element, MetricEntry entry, java.lang.String message)
element
- The model element that caused the problem.entry
- The metric/set/rule that caused the problem.message
- A message describing the problem.public SDMetricsException(ModelElement element, MetricEntry entry, java.lang.Exception cause)
element
- The model element that caused the problem.entry
- The metric/set/rule that caused the problem.cause
- The exception causing the problem.public ModelElement getElement()
public MetricEntry getMetricEntry()