ImmutableQuantityException class
This Exception is thrown when an attempt is made to modify an immutable Quantity object (for example through its setMKS method).
- Inheritance
-
- Object
- QuantityException
- ImmutableQuantityException
Constructors
- ImmutableQuantityException({String str = 'An attempt was made to modify an immutable quantity: ', required Quantity q})
- Constructs a ImmutableQuantityException with an optional message (str).
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited