diff --git a/smart-client-core/src/main/java/com/emc/rest/smart/SmartClientException.java b/smart-client-core/src/main/java/com/emc/rest/smart/SmartClientException.java index 6cfa293..539db1e 100644 --- a/smart-client-core/src/main/java/com/emc/rest/smart/SmartClientException.java +++ b/smart-client-core/src/main/java/com/emc/rest/smart/SmartClientException.java @@ -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); - } - }