package com.emc.rest.smart;

public class SmartClientException extends RuntimeException {

    private ErrorType errorType = ErrorType.Unknown;

    public SmartClientException(String message) {
        super(message);
    }

    public SmartClientException(String message, Throwable cause) {
        super(message, cause);
    }
    public ErrorType getErrorType() {
        return errorType;
    }

    public void setErrorType(ErrorType errorType) {
        this.errorType = errorType;
    }

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

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

}

@@ -493,106 +493,8 @@
  %7D%0A%0A
-    public enum ErrorType %7B%0A        Client, // 4xx%0A        Service, // 5xx%0A        Unknown%0A    %7D%0A%0A
     
@@ -614,12 +614,114 @@
 );%0A    %7D
+%0A    %0A    public enum ErrorType %7B%0A        Client, // 4xx%0A        Service, // 5xx%0A        Unknown%0A    %7D
 %0A%0A%7D%0A

Update SmartClientException.java