Use generator to generate exceptions from yaml
Signed-off-by: Asai Neko <sugar@sne.moe>
This commit is contained in:
10
internal/exception/definitions/common.yaml
Normal file
10
internal/exception/definitions/common.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
common:
|
||||
error:
|
||||
invalid_input: "00001"
|
||||
unauthorized: "00002"
|
||||
internal: "00003"
|
||||
permission_denied: "00004"
|
||||
uuid_parse_failed: "00005"
|
||||
database: "00006"
|
||||
missing_user_id: "00007"
|
||||
user_not_found: "00008"
|
||||
Reference in New Issue
Block a user