Package org.openjdk.jmc.common.unit
Class QuantityConversionException.Persisted
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.openjdk.jmc.common.unit.QuantityConversionException
-
- org.openjdk.jmc.common.unit.QuantityConversionException.Persisted
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- QuantityConversionException
public static class QuantityConversionException.Persisted extends QuantityConversionException
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openjdk.jmc.common.unit.QuantityConversionException
QuantityConversionException.Persisted, QuantityConversionException.Problem, QuantityConversionException.Quantity
-
-
Field Summary
Fields Modifier and Type Field Description protected Object
badValue
protected IPersister<?>
persister
protected Object
prototype
-
Fields inherited from class org.openjdk.jmc.common.unit.QuantityConversionException
badString, problem
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getInteractivePrototype()
Prototype value suitable to be presented to a human.String
getLocalizedMessage()
String
getMessage()
String
getPersistablePrototype()
Prototype value suitable to be persisted or logged.-
Methods inherited from class org.openjdk.jmc.common.unit.QuantityConversionException
belowPrecision, belowPrecision, conflictingConstraints, getBadString, getProblem, noUnit, noUnit, tooHigh, tooHigh, tooLow, tooLow, toString, unknownUnit, unknownUnit, unparsable, unparsable
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Field Detail
-
badValue
protected final Object badValue
-
prototype
protected final Object prototype
-
persister
protected final transient IPersister<?> persister
-
-
Method Detail
-
getMessage
public String getMessage()
- Overrides:
getMessage
in classQuantityConversionException
-
getLocalizedMessage
public String getLocalizedMessage()
- Overrides:
getLocalizedMessage
in classQuantityConversionException
-
getPersistablePrototype
public String getPersistablePrototype()
Description copied from class:QuantityConversionException
Prototype value suitable to be persisted or logged.- Specified by:
getPersistablePrototype
in classQuantityConversionException
- Returns:
- a non-localized (English) value that will prevent this particular problem when parsed.
-
getInteractivePrototype
public String getInteractivePrototype()
Description copied from class:QuantityConversionException
Prototype value suitable to be presented to a human. Must not be persisted or logged.- Specified by:
getInteractivePrototype
in classQuantityConversionException
- Returns:
- a localized value that will prevent this particular problem when parsed using interactive parsing.
-
-