Skip to content

Commit 4f1e51a

Browse files
committed
feat: Credits add new errors
1 parent 202608d commit 4f1e51a

File tree

4 files changed

+37
-29
lines changed

4 files changed

+37
-29
lines changed

go/github.com/jupyter-naas/naas-models/go/errors/errors.pb.go

Lines changed: 33 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

protos/errors.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ enum Error {
3333

3434
CREDITS_USER_HAS_NO_PARENT = 400;
3535
CREDITS_OUT_OF_CREDITS = 401;
36+
CREDITS_USER_ALREADY_HAS_PARENT = 402;
3637

3738
// Ontology errors 500 - 599
3839
ONTOLOGY_NOT_FOUND = 500;

python/naas_models/errors_pb2.py

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

python/naas_models/pydantic/errors_p2p.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ class Error(IntEnum):
2424
WORKSPACE_CANNOT_INVITE_TO_PERSONAL_WORKSPACE = 308
2525
CREDITS_USER_HAS_NO_PARENT = 400
2626
CREDITS_OUT_OF_CREDITS = 401
27+
CREDITS_USER_ALREADY_HAS_PARENT = 402
2728
ONTOLOGY_NOT_FOUND = 500
2829
CHAT_NOT_FOUND = 600
2930
CHAT_NOT_AUTHORIZED = 601

0 commit comments

Comments
 (0)