Skip to content

Commit

Permalink
馃洜锔廎ix a bug in AIException constructor (microsoft#717)
Browse files Browse the repository at this point in the history
The AIException constructor that takes an errorCode, a message, and a
detail was incorrectly passing null as the detail parameter to the base
constructor. This commit fixes this bug by passing the detail parameter
correctly. This ensures that the detail information is preserved and
available for error handling.

### Motivation and Context
Bug Introduced: microsoft#701
Bug Hidden by: microsoft#596
  • Loading branch information
lemillermicrosoft committed Apr 28, 2023
1 parent c780d05 commit 172dfdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dotnet/src/SemanticKernel.Abstractions/AI/AIException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public AIException(ErrorCodes errorCode, string? message, Exception? innerExcept
/// <param name="message">A string that describes the error.</param>
/// <param name="detail">A string that provides additional details about the error.</param>
public AIException(ErrorCodes errorCode, string? message, string? detail)
: this(errorCode, message, detail: null, innerException: null)
: this(errorCode, message, detail, innerException: null)
{
}

Expand Down

0 comments on commit 172dfdd

Please sign in to comment.