-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added new guards for latin characters only and new exception for upst…
…ream errors
- Loading branch information
Mahmoud Swehli
committed
Feb 17, 2024
1 parent
15ef1bf
commit 858aa90
Showing
4 changed files
with
65 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace Muljin.Exceptions | ||
{ | ||
/// <summary> | ||
/// Exception for selected user not found | ||
/// </summary> | ||
public class UpstreamException : MuljinException | ||
{ | ||
public UpstreamException(){ | ||
new UserNotFoundException("Exception occured when calling upstream service"); | ||
} | ||
|
||
public UpstreamException(string message) | ||
{ | ||
new UserNotFoundException(message, "UPS001"); | ||
} | ||
|
||
public UpstreamException(string message, string errorCode): base(message, errorCode) { } | ||
} | ||
} |
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