public static class QuantityConversionException.Quantity extends QuantityConversionException
QuantityConversionException.Persisted, QuantityConversionException.Problem, QuantityConversionException.Quantity| Modifier and Type | Field and Description |
|---|---|
protected IQuantity |
badQuantity |
protected IQuantity |
prototype |
private static long |
serialVersionUID |
badString, problem| Constructor and Description |
|---|
Quantity(QuantityConversionException.Problem problem,
IQuantity badQuantity,
IQuantity prototype) |
Quantity(QuantityConversionException.Problem problem,
java.lang.String badString,
IQuantity prototype) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getInteractivePrototype()
Prototype value suitable to be presented to a human.
|
java.lang.String |
getLocalizedMessage() |
java.lang.String |
getMessage() |
java.lang.String |
getPersistablePrototype()
Prototype value suitable to be persisted or logged.
|
private static java.lang.String |
readableProto(ITypedQuantity<LinearUnit> prototype,
LinearUnit userUnit)
Produce a string that presents a prototype value.
|
belowPrecision, belowPrecision, conflictingConstraints, getBadString, getProblem, noUnit, noUnit, tooHigh, tooHigh, tooLow, tooLow, toString, unknownUnit, unknownUnit, unparsable, unparsableprivate static final long serialVersionUID
protected final IQuantity badQuantity
protected final IQuantity prototype
public Quantity(QuantityConversionException.Problem problem, java.lang.String badString, IQuantity prototype)
public Quantity(QuantityConversionException.Problem problem, IQuantity badQuantity, IQuantity prototype)
public java.lang.String getMessage()
getMessage in class QuantityConversionExceptionpublic java.lang.String getLocalizedMessage()
getLocalizedMessage in class QuantityConversionExceptionprivate static java.lang.String readableProto(ITypedQuantity<LinearUnit> prototype, LinearUnit userUnit)
prototype - prototype value to presentuserUnit - alternative unit to present the prototype value inpublic java.lang.String getPersistablePrototype()
QuantityConversionExceptiongetPersistablePrototype in class QuantityConversionExceptionpublic java.lang.String getInteractivePrototype()
QuantityConversionExceptiongetInteractivePrototype in class QuantityConversionException