Skip to content

Commit

Permalink
Add serialization constructor for the CronFormatException class
Browse files Browse the repository at this point in the history
  • Loading branch information
odinserj committed Dec 26, 2023
1 parent 1e49578 commit c24d286
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Cronos/CronFormatException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
// SOFTWARE.

using System;
#if !NETSTANDARD1_0
using System.Runtime.Serialization;
#endif

namespace Cronos
{
Expand All @@ -43,5 +46,12 @@ public CronFormatException(string message) : base(message)
internal CronFormatException(CronField field, string message) : this($"{field}: {message}")
{
}

#if !NETSTANDARD1_0
/// <inheritdoc />
protected CronFormatException(SerializationInfo info, StreamingContext context) : base(info, context)
{
}
#endif
}
}

0 comments on commit c24d286

Please sign in to comment.