Skip to content

Commit

Permalink
Update GeolocationException.cs to fix typos (#676)
Browse files Browse the repository at this point in the history
Changes made:
- Corrected "occured" to "occurred"
- Corrected "GelocationError" to "GeolocationError"
  • Loading branch information
fkucukkara authored Jan 3, 2025
1 parent 7a010bc commit cc4c3bf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ClientApp/Models/Location/GeolocationException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,22 @@
public class GeolocationException : Exception
{
public GeolocationException(GeolocationError error)
: base("A geolocation error occured: " + error)
: base("A geolocation error occurred: " + error)
{
if (!Enum.IsDefined(typeof(GeolocationError), error))
{
throw new ArgumentException("error is not a valid GelocationError member", nameof(error));
throw new ArgumentException("error is not a valid GeolocationError member", nameof(error));
}

Error = error;
}

public GeolocationException(GeolocationError error, Exception innerException)
: base("A geolocation error occured: " + error, innerException)
: base("A geolocation error occurred: " + error, innerException)
{
if (!Enum.IsDefined(typeof(GeolocationError), error))
{
throw new ArgumentException("error is not a valid GelocationError member", nameof(error));
throw new ArgumentException("error is not a valid GeolocationError member", nameof(error));
}

Error = error;
Expand Down

0 comments on commit cc4c3bf

Please sign in to comment.