Skip to content

Commit

Permalink
Update SmartClientException.java
Browse files Browse the repository at this point in the history
  • Loading branch information
dunedodo authored Sep 21, 2022
1 parent 71434dc commit 4410872
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ public void setErrorType(ErrorType errorType) {
this.errorType = errorType;
}

public boolean isServerError() {
return this.getErrorType().equals(SmartClientException.ErrorType.Service);
}

public enum ErrorType {
Client, // 4xx
Service, // 5xx
Unknown
}

public boolean isServerError() {
return this.getErrorType().equals(SmartClientException.ErrorType.Service);
}

}

0 comments on commit 4410872

Please sign in to comment.