Function GeodesyValueException.this
Construct an exception with source location metadata.
this(
string message,
string file = __FILE__,
ulong line = cast(ulong)__LINE__
) @safe;
Parameters
| Name | Description |
|---|---|
| message | Human-readable failure description. |
| file | Source file recorded on the exception. |
| line | Source line recorded on the exception. |
Example
Example constructing the exception used by throwing geodesy APIs.
import geodesy;
const error = new GeodesyValueException("invalid geodetic value");
assert(error .msg == "invalid geodetic value");
}