File tree Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change 11{% if spec .definitions .appwriteException .errorTypes | length > 0 %}
22const assert = require('assert');
3- const ErrorType = require('../lib/exception.js');
3+ const { ErrorType } = require('../lib/exception.js');
44
55try {
66{% for error in spec .definitions .appwriteException .errorTypes %}
Original file line number Diff line number Diff line change 11361136 "required" : [" result" ]
11371137 },
11381138 "appwriteException" : {
1139+ "description" : " Error Types" ,
1140+ "type" : " object" ,
1141+ "properties" : {
1142+ "description" : {
1143+ "type" : " string" ,
1144+ "description" : " Error message." ,
1145+ "x-example" : " Invalid id: Parameter must be a valid number"
1146+ },
1147+ "type" : {
1148+ "type" : " string" ,
1149+ "description" : " Error type." ,
1150+ "enum" : [
1151+ " general_mock" ,
1152+ " general_argument_invalid"
1153+ ],
1154+ "x-example" : " argument_invalid"
1155+ },
1156+ "code" : {
1157+ "type" : " integer" ,
1158+ "description" : " Error code." ,
1159+ "x-example" : 400 ,
1160+ "format" : " int32"
1161+ }
1162+ },
11391163 "x-appwrite" : {
11401164 "types" : [
11411165 {
You can’t perform that action at this time.
0 commit comments