Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion kx/KException.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
using System;
#if !NET8_0_OR_GREATER
using System.Runtime.Serialization;
#endif

namespace kx
{
/// <summary>
/// An exception that is thrown when in an error occurs in the <see cref="kx.c"/> class.
/// </summary>
#if !NET8_0_OR_GREATER
[Serializable]
#endif
public class KException : Exception
{
/// <summary>
Expand Down Expand Up @@ -37,7 +41,7 @@ public KException(string message, Exception innerException)
: base(message, innerException)
{
}

#if !NET8_0_OR_GREATER
/// <summary>
/// Initialises a new instance of <see cref="KException"/> with serialised data.
/// </summary>
Expand All @@ -47,5 +51,6 @@ protected KException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
#endif
}
}
Loading