Skip to content

Commit

Permalink
feat: Credits add new errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr0p42 committed Jan 20, 2025
1 parent 202608d commit 4f1e51a
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 29 deletions.
60 changes: 33 additions & 27 deletions go/github.com/jupyter-naas/naas-models/go/errors/errors.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions protos/errors.proto
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ enum Error {

CREDITS_USER_HAS_NO_PARENT = 400;
CREDITS_OUT_OF_CREDITS = 401;
CREDITS_USER_ALREADY_HAS_PARENT = 402;

// Ontology errors 500 - 599
ONTOLOGY_NOT_FOUND = 500;
Expand Down
4 changes: 2 additions & 2 deletions python/naas_models/errors_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions python/naas_models/pydantic/errors_p2p.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class Error(IntEnum):
WORKSPACE_CANNOT_INVITE_TO_PERSONAL_WORKSPACE = 308
CREDITS_USER_HAS_NO_PARENT = 400
CREDITS_OUT_OF_CREDITS = 401
CREDITS_USER_ALREADY_HAS_PARENT = 402
ONTOLOGY_NOT_FOUND = 500
CHAT_NOT_FOUND = 600
CHAT_NOT_AUTHORIZED = 601
Expand Down

0 comments on commit 4f1e51a

Please sign in to comment.