Skip to content

Commit 39fcfc7

Browse files
authored
Merge pull request #12 from SlicingDice/feature/insert-new-error-code
Insert new error code #39 to the client
2 parents 0f45157 + 993b991 commit 39fcfc7

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/main/java/com/slicingdice/jslicer/core/HandlerResponse.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ private void raiseError(final JSONObject error) {
115115
throw new AccountBannedException(message);
116116
case 33:
117117
throw new AccountDisabledException(message);
118+
case 39:
119+
throw new IndexInvalidRangeException(message);
118120
// Field errors (40 - 59)
119121
case 40:
120122
throw new FieldMissingParamException(message);
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package com.slicingdice.jslicer.exceptions.api.index;
2+
3+
import com.slicingdice.jslicer.exceptions.api.SlicingDiceException;
4+
5+
public class IndexInvalidRangeException extends SlicingDiceException {
6+
public IndexInvalidRangeException(final String message) {
7+
super(message);
8+
}
9+
}

0 commit comments

Comments
 (0)