-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d520dfc
commit 881461f
Showing
9 changed files
with
91 additions
and
86 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using System.Net; | ||
using Sharecode.Backend.Domain.Exceptions; | ||
using Sharecode.Backend.Utilities.JsonExceptions; | ||
|
||
namespace Sharecode.Backend.Application.Exceptions; | ||
|
||
[ExceptionDetail(76223, "An unknown error occured while handling the live request")] | ||
public class LiveException : AppException | ||
{ | ||
public LiveException(string message, string? extendedMessage = default, string? eventType = default) : base(message, 76223, HttpStatusCode.InternalServerError, extendedMessage) | ||
{ | ||
if (string.IsNullOrEmpty(eventType)) | ||
{ | ||
SetMessage($"Your request failed to specify the event type"); | ||
} | ||
else | ||
{ | ||
SetMessage($"An unknown error occured while processing the event of {eventType}. Occured exception is : {message}. Additional Message: {extendedMessage}"); | ||
} | ||
} | ||
} |
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
2 changes: 1 addition & 1 deletion
2
...n/Event/Inbound/LineCommentTypingEvent.cs → ...eEvents/Inbound/LineCommentTypingEvent.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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...end.Application/Event/Outbond/LogEvent.cs → ...pplication/LiveEvents/Outbond/LogEvent.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