Skip to content

Commit

Permalink
Remove raw exception from UnhandledExceptionEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
josephdecock committed Jul 7, 2023
1 parent 6cfd623 commit df621d8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
9 changes: 0 additions & 9 deletions src/IdentityServer/Events/UnhandledExceptionEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ public UnhandledExceptionEvent(Exception ex)
EventIds.UnhandledException,
ex.Message)
{
Exception = ex;
Details = ex.ToString();
}

Expand All @@ -34,12 +33,4 @@ public UnhandledExceptionEvent(Exception ex)
/// The details.
/// </value>
public string Details { get; set; }

/// <summary>
/// Gets or sets the exception.
/// </summary>
/// <value>
/// The exception.
/// </value>
public Exception Exception { get; set; }
}
2 changes: 1 addition & 1 deletion test/IdentityServer.UnitTests/Events/EventTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public void UnhandledExceptionEventCanCallToString()
{
try
{
throw new Exception();
throw new InvalidOperationException("Boom");
}
catch (Exception ex)
{
Expand Down

0 comments on commit df621d8

Please sign in to comment.