Skip to content

[FEATURE REQ] Different exception for different errors #663

@verdie-g

Description

@verdie-g

Describe the feature or improvement you are requesting

Today, the client only throws a single type of exception System.ClientModel.ClientResultException and fits everything in the message property so it's hard to handle them properly. It would be great to have one exception type by error type like it's done in the python library.

Additional context

No response

Metadata

Metadata

Assignees

Labels

area: architectureThis item is related to general architecture of the OpenAI client library.needs-author-feedbackWorkflow: More information is needed from author to address the issue.questionCategory: The issue is seeking information about the library or its usage.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions