Skip to content

Commit 450e7c9

Browse files
authored
Merge pull request #9 from SlicingDice/feature/add-new-error-cde
Insert new error code #39 to the client
2 parents a92a78c + b69e139 commit 450e7c9

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/errors.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -758,6 +758,12 @@ class InvalidMethodRequestError extends ExtendableError {
758758
}
759759
}
760760

761+
class IndexInvalidRangeException extends ExtendableError {
762+
constructor(m) {
763+
super(m);
764+
}
765+
}
766+
761767
module.exports = {
762768
"AuthMissingHeaderError" : AuthMissingHeaderError,
763769
"AuthAPIKeyError": AuthAPIKeyError,
@@ -885,5 +891,6 @@ module.exports = {
885891
"InvalidFieldError": InvalidFieldError,
886892
"InvalidFieldTypeError": InvalidFieldTypeError,
887893
"InvalidKeyError": InvalidKeyError,
888-
"InvalidMethodRequestError": InvalidMethodRequestError
894+
"InvalidMethodRequestError": InvalidMethodRequestError,
895+
"IndexInvalidRangeException": IndexInvalidRangeException
889896
}

src/mappedErrors.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ var mappedSDErrors = {
2727
31: errors["AccountPaymentRequiredError"],
2828
32: errors["AccountBannedError"],
2929
33: errors["AccountDisabledError"],
30+
39: errors["IndexInvalidRangeException"],
3031
// Field errors (40 - 59)
3132
40: errors["FieldMissingParamError"],
3233
41: errors["FieldTypeError"],

0 commit comments

Comments
 (0)