ImmutableQuantityException class

This Exception is thrown when an attempt is made to modify an immutable Quantity object (for example through its setMKS method).

Inheritance

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

hashCode int
The hash code for this object.
no setterinherited
message String
The optional message to display.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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