From 44108728690790de59ef5c6a0983608a924deb71 Mon Sep 17 00:00:00 2001 From: Billy Yuan <97728850+dunedodo@users.noreply.github.com> Date: Wed, 21 Sep 2022 15:25:03 +0800 Subject: [PATCH] Update SmartClientException.java --- .../java/com/emc/rest/smart/SmartClientException.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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); - } - }