-
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.
Added condition check to order processing
- Loading branch information
Showing
8 changed files
with
116 additions
and
4 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
33 changes: 33 additions & 0 deletions
33
src/Altinn.Notifications.Core/Exceptions/OrderProcessingException.cs
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
namespace Altinn.Notifications.Core.Exceptions; | ||
|
||
/// <summary> | ||
/// Represents errors that occur during order processing operations. | ||
/// </summary> | ||
public class OrderProcessingException : Exception | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="OrderProcessingException"/> class. | ||
/// </summary> | ||
public OrderProcessingException() : base() | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="OrderProcessingException"/> class | ||
/// with a specified error message. | ||
/// </summary> | ||
/// <param name="message">The message that describes the error.</param> | ||
public OrderProcessingException(string message) : base(message) | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="OrderProcessingException"/> class | ||
/// with a specified error message and a reference to the inner exception that is the cause of this exception. | ||
/// </summary> | ||
/// <param name="message">The error message that explains the reason for the exception.</param> | ||
/// <param name="inner">The exception that is the cause of the current exception, or a null reference if no inner exception is specified.</param> | ||
public OrderProcessingException(string message, Exception inner) : base(message, inner) | ||
{ | ||
} | ||
} |
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 |
---|---|---|
|
@@ -17,6 +17,7 @@ public class GetOrderService : IGetOrderService | |
{ OrderProcessingStatus.Registered, "Order has been registered and is awaiting requested send time before processing." }, | ||
{ OrderProcessingStatus.Processing, "Order processing is ongoing. Notifications are being generated." }, | ||
{ OrderProcessingStatus.Completed, "Order processing is completed. All notifications have been generated." }, | ||
{ OrderProcessingStatus.SendConditionNotMet, "Order processing was stopped due to send condition not being met."} | ||
Check warning on line 20 in src/Altinn.Notifications.Core/Services/GetOrderService.cs GitHub Actions / Analyze (csharp)
Check warning on line 20 in src/Altinn.Notifications.Core/Services/GetOrderService.cs GitHub Actions / Analyze (csharp)
Check warning on line 20 in src/Altinn.Notifications.Core/Services/GetOrderService.cs GitHub Actions / Build, test & analyze
Check warning on line 20 in src/Altinn.Notifications.Core/Services/GetOrderService.cs GitHub Actions / Build, test & analyze
|
||
}; | ||
|
||
/// <summary> | ||
|
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
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