Package org.openjdk.jmc.common.unit
Class QuantityConversionException.Quantity
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.openjdk.jmc.common.unit.QuantityConversionException
org.openjdk.jmc.common.unit.QuantityConversionException.Quantity
- All Implemented Interfaces:
Serializable
- Enclosing class:
- QuantityConversionException
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.openjdk.jmc.common.unit.QuantityConversionException
QuantityConversionException.Persisted, QuantityConversionException.Problem, QuantityConversionException.Quantity -
Field Summary
FieldsFields inherited from class org.openjdk.jmc.common.unit.QuantityConversionException
badString, problem -
Constructor Summary
ConstructorsConstructorDescriptionQuantity(QuantityConversionException.Problem problem, String badString, IQuantity prototype) Quantity(QuantityConversionException.Problem problem, IQuantity badQuantity, IQuantity prototype) -
Method Summary
Modifier and TypeMethodDescriptionPrototype value suitable to be presented to a human.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, unparsableMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Field Details
-
badQuantity
-
prototype
-
-
Constructor Details
-
Quantity
-
Quantity
public Quantity(QuantityConversionException.Problem problem, IQuantity badQuantity, IQuantity prototype)
-
-
Method Details
-
getMessage
- Overrides:
getMessagein classQuantityConversionException
-
getLocalizedMessage
- Overrides:
getLocalizedMessagein classQuantityConversionException
-
getPersistablePrototype
Description copied from class:QuantityConversionExceptionPrototype value suitable to be persisted or logged.- Specified by:
getPersistablePrototypein classQuantityConversionException- Returns:
- a non-localized (English) value that will prevent this particular problem when parsed.
-
getInteractivePrototype
Description copied from class:QuantityConversionExceptionPrototype value suitable to be presented to a human. Must not be persisted or logged.- Specified by:
getInteractivePrototypein classQuantityConversionException- Returns:
- a localized value that will prevent this particular problem when parsed using interactive parsing.
-