From bf69faa456d858d0344558e74dba67655b75babd Mon Sep 17 00:00:00 2001 From: ClemensF Date: Sat, 25 Aug 2018 18:50:52 +0200 Subject: [PATCH] Version 4.10.0: Exception messages. --- MapControl/Shared/BoundingBox.cs | 2 +- MapControl/Shared/Location.cs | 2 +- MapControl/Shared/LocationEx.cs | 10 +++++----- MapControl/UWP/Matrix.UWP.cs | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/MapControl/Shared/BoundingBox.cs b/MapControl/Shared/BoundingBox.cs index 927fcf62..eef8c479 100644 --- a/MapControl/Shared/BoundingBox.cs +++ b/MapControl/Shared/BoundingBox.cs @@ -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( diff --git a/MapControl/Shared/Location.cs b/MapControl/Shared/Location.cs index 91e1c43b..83510efd 100644 --- a/MapControl/Shared/Location.cs +++ b/MapControl/Shared/Location.cs @@ -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( diff --git a/MapControl/Shared/LocationEx.cs b/MapControl/Shared/LocationEx.cs index d555a83f..1a901e28 100644 --- a/MapControl/Shared/LocationEx.cs +++ b/MapControl/Shared/LocationEx.cs @@ -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; diff --git a/MapControl/UWP/Matrix.UWP.cs b/MapControl/UWP/Matrix.UWP.cs index 14ade9ef..eb37cca5 100644 --- a/MapControl/UWP/Matrix.UWP.cs +++ b/MapControl/UWP/Matrix.UWP.cs @@ -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(