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
 
 public static class QuantityConversionException.Quantity extends QuantityConversionException - See Also:
- Serialized Form
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class org.openjdk.jmc.common.unit.QuantityConversionExceptionQuantityConversionException.Persisted, QuantityConversionException.Problem, QuantityConversionException.Quantity
 
- 
 - 
Field SummaryFields Modifier and Type Field Description protected IQuantitybadQuantityprotected IQuantityprototype- 
Fields inherited from class org.openjdk.jmc.common.unit.QuantityConversionExceptionbadString, problem
 
- 
 - 
Constructor SummaryConstructors Constructor Description Quantity(QuantityConversionException.Problem problem, String badString, IQuantity prototype)Quantity(QuantityConversionException.Problem problem, IQuantity badQuantity, IQuantity prototype)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetInteractivePrototype()Prototype value suitable to be presented to a human.StringgetLocalizedMessage()StringgetMessage()StringgetPersistablePrototype()Prototype value suitable to be persisted or logged.- 
Methods inherited from class org.openjdk.jmc.common.unit.QuantityConversionExceptionbelowPrecision, belowPrecision, conflictingConstraints, getBadString, getProblem, noUnit, noUnit, tooHigh, tooHigh, tooLow, tooLow, toString, unknownUnit, unknownUnit, unparsable, unparsable
 - 
Methods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
- 
 
- 
- 
- 
Constructor Detail- 
Quantitypublic Quantity(QuantityConversionException.Problem problem, String badString, IQuantity prototype) 
 - 
Quantitypublic Quantity(QuantityConversionException.Problem problem, IQuantity badQuantity, IQuantity prototype) 
 
- 
 - 
Method Detail- 
getMessagepublic String getMessage() - Overrides:
- getMessagein class- QuantityConversionException
 
 - 
getLocalizedMessagepublic String getLocalizedMessage() - Overrides:
- getLocalizedMessagein class- QuantityConversionException
 
 - 
getPersistablePrototypepublic String getPersistablePrototype() Description copied from class:QuantityConversionExceptionPrototype value suitable to be persisted or logged.- Specified by:
- getPersistablePrototypein class- QuantityConversionException
- Returns:
- a non-localized (English) value that will prevent this particular problem when parsed.
 
 - 
getInteractivePrototypepublic String getInteractivePrototype() Description copied from class:QuantityConversionExceptionPrototype value suitable to be presented to a human. Must not be persisted or logged.- Specified by:
- getInteractivePrototypein class- QuantityConversionException
- Returns:
- a localized value that will prevent this particular problem when parsed using interactive parsing.
 
 
- 
 
-