Skip to content

Commit

Permalink
Fix warning - Exception shouldn't be serializable
Browse files Browse the repository at this point in the history
  • Loading branch information
maximn committed Oct 9, 2024
1 parent e84ac8c commit 03e8fea
Showing 1 changed file with 0 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,9 @@
using System;
using System.Runtime.Serialization;

namespace GoogleMapsApi.Entities.Directions.Response
{
[Serializable]
public class PointsDecodingException : Exception
{
//
// For guidelines regarding the creation of new exception types, see
// http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/cpconerrorraisinghandlingguidelines.asp
// and
// http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncscol/html/csharp07192001.asp
//

public string EncodedString { get; set; }

public PointsDecodingException()
Expand All @@ -27,11 +18,5 @@ public PointsDecodingException(string message, string encodedString, Exception i
{
EncodedString = encodedString;
}

protected PointsDecodingException(
SerializationInfo info,
StreamingContext context) : base(info, context)
{
}
}
}

0 comments on commit 03e8fea

Please sign in to comment.