forked from mlflow/mlflow
-
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.
Add ApiError into GraphQL schema (mlflow#12702)
Signed-off-by: edwardfeng-db <[email protected]>
- Loading branch information
1 parent
dd4b2fd
commit afd33b3
Showing
5 changed files
with
29 additions
and
0 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,15 @@ | ||
import graphene | ||
|
||
|
||
class ErrorDetail(graphene.ObjectType): | ||
# NOTE: This is not an exhaustive list, might need to add more things in the future if needed. | ||
field = graphene.String() | ||
message = graphene.String() | ||
|
||
|
||
class ApiError(graphene.ObjectType): | ||
code = graphene.String() | ||
message = graphene.String() | ||
help_url = graphene.String() | ||
trace_id = graphene.String() | ||
error_details = graphene.List(ErrorDetail) |