Skip to content

Commit

Permalink
fixed exception class
Browse files Browse the repository at this point in the history
  • Loading branch information
chengyouling committed Dec 6, 2023
1 parent 3c16f85 commit b596c16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public boolean init() throws Exception {
if ((boolean)result.get("code")) {
return true;
} else {
throw new Exception((String) result.get("message"));
throw new IllegalStateException((String) result.get("message"));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public boolean init() throws Exception {
if ((boolean)result.get("code")) {
return true;
} else {
throw new Exception((String) result.get("message"));
throw new IllegalStateException((String) result.get("message"));
}
}

Expand Down

0 comments on commit b596c16

Please sign in to comment.