Skip to content

Commit

Permalink
馃洜锔廎ix a bug in AIException constructor (#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: #701
Bug Hidden by: #596
  • Loading branch information
lemillermicrosoft authored and dluc committed Apr 29, 2023
1 parent 26e8710 commit 186e830
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 186e830

Please sign in to comment.