-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollback of Microsoft.Extensions.Http patch and extended BridgeReques…
…tFailedException (#447) #444 Rollback of Microsoft.Extensions.Http patch from 7.0.0 back to the original 6.0.2-mauipre.1.22102.15 which is the final patch change which might be the cause of failures. BridgeRequestFailedException have been extended to be able to set message and inner exception as these now are just empty execeptions which makes debugging failure harder. Co-authored-by: Jon Kjetil Øye <[email protected]>
- Loading branch information
1 parent
8729eda
commit 7af490d
Showing
3 changed files
with
42 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,47 @@ | ||
using System; | ||
using System.Runtime.Serialization; | ||
|
||
namespace Altinn.Platform.Authorization.Functions.Exceptions; | ||
|
||
/// <summary> | ||
/// Generic exception used to trigger re-queueing of messages | ||
/// </summary> | ||
[Serializable] | ||
public class BridgeRequestFailedException : Exception | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="BridgeRequestFailedException"/> class. | ||
/// </summary> | ||
public BridgeRequestFailedException() | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="BridgeRequestFailedException"/> class. | ||
/// </summary> | ||
/// <param name="message">Error message</param> | ||
public BridgeRequestFailedException(string message) | ||
: base(message) | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="BridgeRequestFailedException"/> class. | ||
/// </summary> | ||
/// <param name="message">Error message</param> | ||
/// <param name="innerException">Inner exception</param> | ||
public BridgeRequestFailedException(string message, Exception innerException) | ||
: base(message, innerException) | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="BridgeRequestFailedException"/> class. | ||
/// </summary> | ||
/// <param name="info">Serialization info</param> | ||
/// <param name="context">Context</param> | ||
protected BridgeRequestFailedException(SerializationInfo info, StreamingContext context) | ||
: base(info, context) | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters