Class GeodesyValueException
Exception used by throwing convenience APIs when the corresponding checked operation would fail because of invalid input, unsupported domain, or an unrepresentable result.
class GeodesyValueException
: object .Exception;
Checked try... APIs report the same semantic failures with false
instead of throwing.
Constructors
| Name | Description |
|---|---|
this
(message, file, line)
|
Construct an exception with source location metadata. |
Example
Example identifying the library's throwing failure type.
import geodesy;
Exception error = new GeodesyValueException("invalid value");
assert(cast(GeodesyValueException) error !is null);