public static class QuantityConversionException.Persisted extends QuantityConversionException
QuantityConversionException.Persisted, QuantityConversionException.Problem, QuantityConversionException.Quantity
Modifier and Type | Field and Description |
---|---|
protected java.lang.Object |
badValue |
protected IPersister<?> |
persister |
protected java.lang.Object |
prototype |
private static long |
serialVersionUID |
badString, problem
Modifier | Constructor and Description |
---|---|
private |
Persisted(QuantityConversionException.Problem problem,
java.lang.Object badValue,
java.lang.Object prototype,
IPersister<?> persister) |
private |
Persisted(QuantityConversionException.Problem problem,
java.lang.String badString,
java.lang.Object prototype,
IPersister<?> persister) |
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 <T> java.lang.String |
interactive(T value) |
private <T> java.lang.String |
persistable(T value) |
belowPrecision, belowPrecision, conflictingConstraints, getBadString, getProblem, noUnit, noUnit, tooHigh, tooHigh, tooLow, tooLow, toString, unknownUnit, unknownUnit, unparsable, unparsable
private static final long serialVersionUID
protected final java.lang.Object badValue
protected final java.lang.Object prototype
protected final transient IPersister<?> persister
private Persisted(QuantityConversionException.Problem problem, java.lang.String badString, java.lang.Object prototype, IPersister<?> persister)
private Persisted(QuantityConversionException.Problem problem, java.lang.Object badValue, java.lang.Object prototype, IPersister<?> persister)
private <T> java.lang.String persistable(T value)
private <T> java.lang.String interactive(T value)
public java.lang.String getMessage()
getMessage
in class QuantityConversionException
public java.lang.String getLocalizedMessage()
getLocalizedMessage
in class QuantityConversionException
public java.lang.String getPersistablePrototype()
QuantityConversionException
getPersistablePrototype
in class QuantityConversionException
public java.lang.String getInteractivePrototype()
QuantityConversionException
getInteractivePrototype
in class QuantityConversionException