mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-02-11 18:26:00 +01:00
Version 4.10.0: Exception messages.
This commit is contained in:
parent
b06c9065af
commit
bf69faa456
|
|
@ -82,7 +82,7 @@ namespace MapControl
|
|||
|
||||
if (values.Length != 4)
|
||||
{
|
||||
throw new FormatException("BoundingBox string must be a comma-separated list of four double values");
|
||||
throw new FormatException("BoundingBox string must be a comma-separated list of four double values.");
|
||||
}
|
||||
|
||||
return new BoundingBox(
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ namespace MapControl
|
|||
|
||||
if (values.Length != 2)
|
||||
{
|
||||
throw new FormatException("Location string must be a comma-separated pair of double values");
|
||||
throw new FormatException("Location string must be a comma-separated pair of double values.");
|
||||
}
|
||||
|
||||
return new Location(
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ namespace MapControl
|
|||
{
|
||||
if (resolution <= 0d)
|
||||
{
|
||||
throw new ArgumentOutOfRangeException("resolution");
|
||||
throw new ArgumentOutOfRangeException("The parameter resolution must be greater than zero.");
|
||||
}
|
||||
|
||||
var locations = new LocationCollection();
|
||||
|
|
@ -91,7 +91,7 @@ namespace MapControl
|
|||
{
|
||||
if (resolution <= 0d)
|
||||
{
|
||||
throw new ArgumentOutOfRangeException("resolution");
|
||||
throw new ArgumentOutOfRangeException("The parameter resolution must be greater than zero.");
|
||||
}
|
||||
|
||||
if (location1.Longitude == location2.Longitude ||
|
||||
|
|
@ -154,21 +154,21 @@ namespace MapControl
|
|||
{
|
||||
if (resolution <= 0d)
|
||||
{
|
||||
throw new ArgumentOutOfRangeException("resolution");
|
||||
throw new ArgumentOutOfRangeException("The parameter resolution must be greater than zero.");
|
||||
}
|
||||
|
||||
var y1 = WebMercatorProjection.LatitudeToY(location1.Latitude);
|
||||
|
||||
if (double.IsInfinity(y1))
|
||||
{
|
||||
throw new ArgumentOutOfRangeException("location1");
|
||||
throw new ArgumentOutOfRangeException("The parameter location1 must have an absolute latitude value of less than 90 degrees.");
|
||||
}
|
||||
|
||||
var y2 = WebMercatorProjection.LatitudeToY(location2.Latitude);
|
||||
|
||||
if (double.IsInfinity(y2))
|
||||
{
|
||||
throw new ArgumentOutOfRangeException("location2");
|
||||
throw new ArgumentOutOfRangeException("The parameter location2 must have an absolute latitude value of less than 90 degrees.");
|
||||
}
|
||||
|
||||
var x1 = location1.Longitude;
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ namespace MapControl
|
|||
|
||||
if (double.IsInfinity(invDet))
|
||||
{
|
||||
throw new InvalidOperationException("Matrix is not invertible");
|
||||
throw new InvalidOperationException("Matrix is not invertible.");
|
||||
}
|
||||
|
||||
SetMatrix(
|
||||
|
|
|
|||
Loading…
Reference in a new issue