Skip to content

Commit

Permalink
Revert "Remove .NET Remoting method overloads from exception classes"
Browse files Browse the repository at this point in the history
This reverts commit 7a873f3.
  • Loading branch information
0xfeeddeadbeef committed Nov 16, 2024
1 parent 7a873f3 commit 5d996b4
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,8 @@
namespace TBC.OpenBanking.Jws.Exceptions;

using System;
using System.Security.Cryptography.X509Certificates;
#if !NET8_0_OR_GREATER
using System.Runtime.Serialization;
#endif
using System.Security.Cryptography.X509Certificates;

[Serializable]
public class CertificateValidationException : JwsException
Expand Down Expand Up @@ -82,8 +80,6 @@ public CertificateValidationException()
this.SetHResult(ErrorCode);
}

#if !NET8_0_OR_GREATER

protected CertificateValidationException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
Expand All @@ -106,6 +102,4 @@ public override void GetObjectData(SerializationInfo info, StreamingContext cont
info.AddValue("message2", this.message, typeof(string));
base.GetObjectData(info, context);

Check warning on line 103 in src/TBC.OpenBanking.Jws/src/Exceptions/CertificateValidationException.cs

View workflow job for this annotation

GitHub Actions / build

'Exception.GetObjectData(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 103 in src/TBC.OpenBanking.Jws/src/Exceptions/CertificateValidationException.cs

View workflow job for this annotation

GitHub Actions / build

'Exception.GetObjectData(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 103 in src/TBC.OpenBanking.Jws/src/Exceptions/CertificateValidationException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.GetObjectData(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 103 in src/TBC.OpenBanking.Jws/src/Exceptions/CertificateValidationException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.GetObjectData(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 103 in src/TBC.OpenBanking.Jws/src/Exceptions/CertificateValidationException.cs

View workflow job for this annotation

GitHub Actions / build

'Exception.GetObjectData(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 103 in src/TBC.OpenBanking.Jws/src/Exceptions/CertificateValidationException.cs

View workflow job for this annotation

GitHub Actions / build

'Exception.GetObjectData(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 103 in src/TBC.OpenBanking.Jws/src/Exceptions/CertificateValidationException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.GetObjectData(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 103 in src/TBC.OpenBanking.Jws/src/Exceptions/CertificateValidationException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.GetObjectData(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 103 in src/TBC.OpenBanking.Jws/src/Exceptions/CertificateValidationException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.GetObjectData(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 103 in src/TBC.OpenBanking.Jws/src/Exceptions/CertificateValidationException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.GetObjectData(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 103 in src/TBC.OpenBanking.Jws/src/Exceptions/CertificateValidationException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.GetObjectData(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 103 in src/TBC.OpenBanking.Jws/src/Exceptions/CertificateValidationException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.GetObjectData(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 103 in src/TBC.OpenBanking.Jws/src/Exceptions/CertificateValidationException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.GetObjectData(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 103 in src/TBC.OpenBanking.Jws/src/Exceptions/CertificateValidationException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.GetObjectData(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 103 in src/TBC.OpenBanking.Jws/src/Exceptions/CertificateValidationException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.GetObjectData(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 103 in src/TBC.OpenBanking.Jws/src/Exceptions/CertificateValidationException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.GetObjectData(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 103 in src/TBC.OpenBanking.Jws/src/Exceptions/CertificateValidationException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.GetObjectData(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 103 in src/TBC.OpenBanking.Jws/src/Exceptions/CertificateValidationException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.GetObjectData(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 103 in src/TBC.OpenBanking.Jws/src/Exceptions/CertificateValidationException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.GetObjectData(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 103 in src/TBC.OpenBanking.Jws/src/Exceptions/CertificateValidationException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.GetObjectData(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 103 in src/TBC.OpenBanking.Jws/src/Exceptions/CertificateValidationException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.GetObjectData(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 103 in src/TBC.OpenBanking.Jws/src/Exceptions/CertificateValidationException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.GetObjectData(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 103 in src/TBC.OpenBanking.Jws/src/Exceptions/CertificateValidationException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.GetObjectData(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 103 in src/TBC.OpenBanking.Jws/src/Exceptions/CertificateValidationException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.GetObjectData(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 103 in src/TBC.OpenBanking.Jws/src/Exceptions/CertificateValidationException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.GetObjectData(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 103 in src/TBC.OpenBanking.Jws/src/Exceptions/CertificateValidationException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.GetObjectData(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 103 in src/TBC.OpenBanking.Jws/src/Exceptions/CertificateValidationException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.GetObjectData(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 103 in src/TBC.OpenBanking.Jws/src/Exceptions/CertificateValidationException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.GetObjectData(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 103 in src/TBC.OpenBanking.Jws/src/Exceptions/CertificateValidationException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.GetObjectData(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 103 in src/TBC.OpenBanking.Jws/src/Exceptions/CertificateValidationException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.GetObjectData(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 103 in src/TBC.OpenBanking.Jws/src/Exceptions/CertificateValidationException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.GetObjectData(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 103 in src/TBC.OpenBanking.Jws/src/Exceptions/CertificateValidationException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.GetObjectData(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 103 in src/TBC.OpenBanking.Jws/src/Exceptions/CertificateValidationException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.GetObjectData(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 103 in src/TBC.OpenBanking.Jws/src/Exceptions/CertificateValidationException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.GetObjectData(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 103 in src/TBC.OpenBanking.Jws/src/Exceptions/CertificateValidationException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.GetObjectData(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 103 in src/TBC.OpenBanking.Jws/src/Exceptions/CertificateValidationException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.GetObjectData(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)
}

#endif
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@
namespace TBC.OpenBanking.Jws.Exceptions;

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

[Serializable]
public class HeaderMissingException : JwsException
Expand All @@ -49,11 +47,9 @@ public HeaderMissingException(string message, Exception innerException)
this.SetHResult(ErrorCode);
}

#if !NET8_0_OR_GREATER
protected HeaderMissingException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
this.SetHResult(ErrorCode);
}
#endif
}
4 changes: 0 additions & 4 deletions src/TBC.OpenBanking.Jws/src/Exceptions/JwsException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,15 @@
namespace TBC.OpenBanking.Jws.Exceptions;

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

[Serializable]
public abstract class JwsException : Exception
{
protected JwsException() { }
protected JwsException(string message) : base(message) { }
protected JwsException(string message, Exception inner) : base(message, inner) { }
#if !NET8_0_OR_GREATER
protected JwsException(SerializationInfo info, StreamingContext context) : base(info, context) { }

Check warning on line 34 in src/TBC.OpenBanking.Jws/src/Exceptions/JwsException.cs

View workflow job for this annotation

GitHub Actions / build

'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 34 in src/TBC.OpenBanking.Jws/src/Exceptions/JwsException.cs

View workflow job for this annotation

GitHub Actions / build

'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 34 in src/TBC.OpenBanking.Jws/src/Exceptions/JwsException.cs

View workflow job for this annotation

GitHub Actions / build

'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 34 in src/TBC.OpenBanking.Jws/src/Exceptions/JwsException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 34 in src/TBC.OpenBanking.Jws/src/Exceptions/JwsException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 34 in src/TBC.OpenBanking.Jws/src/Exceptions/JwsException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 34 in src/TBC.OpenBanking.Jws/src/Exceptions/JwsException.cs

View workflow job for this annotation

GitHub Actions / build

'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 34 in src/TBC.OpenBanking.Jws/src/Exceptions/JwsException.cs

View workflow job for this annotation

GitHub Actions / build

'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 34 in src/TBC.OpenBanking.Jws/src/Exceptions/JwsException.cs

View workflow job for this annotation

GitHub Actions / build

'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 34 in src/TBC.OpenBanking.Jws/src/Exceptions/JwsException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 34 in src/TBC.OpenBanking.Jws/src/Exceptions/JwsException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 34 in src/TBC.OpenBanking.Jws/src/Exceptions/JwsException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 34 in src/TBC.OpenBanking.Jws/src/Exceptions/JwsException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 34 in src/TBC.OpenBanking.Jws/src/Exceptions/JwsException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 34 in src/TBC.OpenBanking.Jws/src/Exceptions/JwsException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 34 in src/TBC.OpenBanking.Jws/src/Exceptions/JwsException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 34 in src/TBC.OpenBanking.Jws/src/Exceptions/JwsException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 34 in src/TBC.OpenBanking.Jws/src/Exceptions/JwsException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 34 in src/TBC.OpenBanking.Jws/src/Exceptions/JwsException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 34 in src/TBC.OpenBanking.Jws/src/Exceptions/JwsException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 34 in src/TBC.OpenBanking.Jws/src/Exceptions/JwsException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 34 in src/TBC.OpenBanking.Jws/src/Exceptions/JwsException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 34 in src/TBC.OpenBanking.Jws/src/Exceptions/JwsException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 34 in src/TBC.OpenBanking.Jws/src/Exceptions/JwsException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 34 in src/TBC.OpenBanking.Jws/src/Exceptions/JwsException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 34 in src/TBC.OpenBanking.Jws/src/Exceptions/JwsException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 34 in src/TBC.OpenBanking.Jws/src/Exceptions/JwsException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 34 in src/TBC.OpenBanking.Jws/src/Exceptions/JwsException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 34 in src/TBC.OpenBanking.Jws/src/Exceptions/JwsException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 34 in src/TBC.OpenBanking.Jws/src/Exceptions/JwsException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 34 in src/TBC.OpenBanking.Jws/src/Exceptions/JwsException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 34 in src/TBC.OpenBanking.Jws/src/Exceptions/JwsException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 34 in src/TBC.OpenBanking.Jws/src/Exceptions/JwsException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 34 in src/TBC.OpenBanking.Jws/src/Exceptions/JwsException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 34 in src/TBC.OpenBanking.Jws/src/Exceptions/JwsException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 34 in src/TBC.OpenBanking.Jws/src/Exceptions/JwsException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 34 in src/TBC.OpenBanking.Jws/src/Exceptions/JwsException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 34 in src/TBC.OpenBanking.Jws/src/Exceptions/JwsException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 34 in src/TBC.OpenBanking.Jws/src/Exceptions/JwsException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 34 in src/TBC.OpenBanking.Jws/src/Exceptions/JwsException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 34 in src/TBC.OpenBanking.Jws/src/Exceptions/JwsException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 34 in src/TBC.OpenBanking.Jws/src/Exceptions/JwsException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 34 in src/TBC.OpenBanking.Jws/src/Exceptions/JwsException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 34 in src/TBC.OpenBanking.Jws/src/Exceptions/JwsException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 34 in src/TBC.OpenBanking.Jws/src/Exceptions/JwsException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 34 in src/TBC.OpenBanking.Jws/src/Exceptions/JwsException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 34 in src/TBC.OpenBanking.Jws/src/Exceptions/JwsException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 34 in src/TBC.OpenBanking.Jws/src/Exceptions/JwsException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 34 in src/TBC.OpenBanking.Jws/src/Exceptions/JwsException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 34 in src/TBC.OpenBanking.Jws/src/Exceptions/JwsException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 34 in src/TBC.OpenBanking.Jws/src/Exceptions/JwsException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 34 in src/TBC.OpenBanking.Jws/src/Exceptions/JwsException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 34 in src/TBC.OpenBanking.Jws/src/Exceptions/JwsException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)

Check warning on line 34 in src/TBC.OpenBanking.Jws/src/Exceptions/JwsException.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)
#endif

protected const int SEVERITY_SUCCESS = 0;
protected const int SEVERITY_ERROR = 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@
namespace TBC.OpenBanking.Jws.Exceptions;

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

[Serializable]
public class SignatureVerificationProblemException : JwsException
Expand All @@ -49,11 +47,9 @@ public SignatureVerificationProblemException(string message, Exception innerExce
this.SetHResult(ErrorCode);
}

#if !NET8_0_OR_GREATER
protected SignatureVerificationProblemException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
this.SetHResult(ErrorCode);
}
#endif
}

0 comments on commit 5d996b4

Please sign in to comment.