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 1
1
{% if spec .definitions .appwriteException .errorTypes | length > 0 %}
2
2
const assert = require('assert');
3
- const ErrorType = require('../lib/exception.js');
3
+ const { ErrorType } = require('../lib/exception.js');
4
4
5
5
try {
6
6
{% for error in spec .definitions .appwriteException .errorTypes %}
Original file line number Diff line number Diff line change 1136
1136
"required" : [" result" ]
1137
1137
},
1138
1138
"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
+ },
1139
1163
"x-appwrite" : {
1140
1164
"types" : [
1141
1165
{
You can’t perform that action at this time.
0 commit comments