public static HyscaleException buildGetException(String resourceKind, ApiException e, ResourceOperation operation) {
        HyscaleException ex = null;
        if (e.getCode() != 404) {
            ex = new HyscaleException(e, DeployerErrorCodes.FAILED_TO_GET_RESOURCE,
                    getExceptionMessage(resourceKind, e, operation));
        } else {
            ex = new HyscaleException(e, DeployerErrorCodes.RESOURCE_NOT_FOUND,
                    getExceptionMessage(resourceKind, e, operation));
        }
        return ex;
    }
Get operation exception could be if the resource is not found or some other exception
@param resourceKind
@param e - K8s cluster exception
@param operation {@link ResourceOperation}
@return HyscaleException
deployer/deployer-services/src/main/java/io/hyscale/deployer/services/util/ExceptionHelper.java