Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

Commit

Permalink
rename vars
Browse files Browse the repository at this point in the history
  • Loading branch information
davco01a committed May 13, 2020
1 parent 456edd1 commit 03b57e7
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions src/main/java/kabasec/Login.java
Original file line number Diff line number Diff line change
Expand Up @@ -131,24 +131,23 @@ private boolean checkApiUrlException(Exception e) {
System.out.println("exception cause="+cause);

e.printStackTrace();
final String error00="Received unexpected 401 response from GET request";
final String error0="Bad credentials";
final String error1="Encountered an error requesting, parsing";
final String error2="An error occurred during authentication for user Unexpected char";
final String error3="Unexpected char 60";
final String error4="could not parse exception response";
final String error5="An error occurred during authentication for user, double check the apiUrl:";
final String error0="Received unexpected 401 response from GET request";
final String error1="Bad credentials";
final String error2="Encountered an error requesting, parsing";
final String error3="An error occurred during authentication for user Unexpected char";
final String error4="Unexpected char 60";
final String error5="could not parse exception response";
final String error6="An error occurred during authentication for user, double check the apiUrl:";

if (msg.contains(error00)) urlException=false;
else if (msg.contains(error0)) urlException=false;
else if (cause.contains(error00)) urlException=false;
else if (cause.contains(error00)) urlException=false;
else if (cause.contains(error0)) urlException=false;
else if (msg.contains(error1)) urlException=true;
if (msg.contains(error0)) urlException=false;
else if (msg.contains(error1)) urlException=false;
else if (cause.contains(error0)) urlException=false;
else if (cause.contains(error1)) urlException=false;
else if (msg.contains(error2)) urlException=true;
else if (msg.contains(error3)) urlException=true;
else if (msg.contains(error4)) urlException=true;
else if (msg.contains(error5)) urlException=true;
else if (msg.contains(error6)) urlException=true;
System.out.println("urlException="+urlException);
return urlException;
}
Expand Down

0 comments on commit 03b57e7

Please sign in to comment.