|
|
@@ -58,7 +58,7 @@ public class SecretApiImpl implements SecretApi {
|
|
|
} else if (e.getCode() == K8sApiException.SECRET_ALREADY_EXIST) {
|
|
|
throw new K8sApiException(K8sApiException.SECRET_ALREADY_EXIST);
|
|
|
}else{
|
|
|
- throw new K8sApiException(K8sApiException.SYSTEM_ERROR);
|
|
|
+ throw K8sApiException.K8s_SYSTEM_ERROR_EXCEPTION;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -98,7 +98,7 @@ public class SecretApiImpl implements SecretApi {
|
|
|
if (e.getCode() == K8sApiException.NAMESPACE_NOT_EXIST) {
|
|
|
throw new K8sApiException(K8sApiException.NAMESPACE_NOT_EXIST);
|
|
|
} else {
|
|
|
- throw new K8sApiException(K8sApiException.SYSTEM_ERROR);
|
|
|
+ throw K8sApiException.K8s_SYSTEM_ERROR_EXCEPTION;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -138,7 +138,7 @@ public class SecretApiImpl implements SecretApi {
|
|
|
if (e.getCode() == K8sApiException.SECRET_NOT_FOUND) {
|
|
|
throw new K8sApiException(K8sApiException.SECRET_NOT_FOUND);
|
|
|
} else {
|
|
|
- throw new K8sApiException(K8sApiException.SYSTEM_ERROR);
|
|
|
+ throw K8sApiException.K8s_SYSTEM_ERROR_EXCEPTION;
|
|
|
}
|
|
|
}
|
|
|
}
|