From e302559bd7e26f5fb82b3f86cfab65b3c3ad9b17 Mon Sep 17 00:00:00 2001 From: "shihyun.kim" Date: Fri, 28 Dec 2012 14:44:52 +0900 Subject: [PATCH] [Title]MSG : change error message [Desc.] * change error message from UnknownHostException. ** change to 'Fail to resolve host name.(address) [Issue] --- InstallManager_java/src/org/tizen/installmanager/lib/Downloader.java | 5 ++++- .../src/org/tizen/installmanager/lib/ErrorController.java | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/InstallManager_java/src/org/tizen/installmanager/lib/Downloader.java b/InstallManager_java/src/org/tizen/installmanager/lib/Downloader.java index f9ec563..ab58906 100644 --- a/InstallManager_java/src/org/tizen/installmanager/lib/Downloader.java +++ b/InstallManager_java/src/org/tizen/installmanager/lib/Downloader.java @@ -836,7 +836,10 @@ public class Downloader { addr = new InetSocketAddress(InetAddress.getByName(address), port); } catch (UnknownHostException e) { Log.ExceptionLog(e); - throw new IMFatalException(ErrorCode.URL_ADDRESS_IS_WRONG); + + String errMsg = ErrorCode.UNKNOWN_HOST_EXCEPTION.getErrorMessage() + + "(" + address + ")"; + throw new IMFatalException(errMsg); } catch (IllegalArgumentException e) { Log.ExceptionLog(e); diff --git a/InstallManager_java/src/org/tizen/installmanager/lib/ErrorController.java b/InstallManager_java/src/org/tizen/installmanager/lib/ErrorController.java index f2cec61..46d3d12 100644 --- a/InstallManager_java/src/org/tizen/installmanager/lib/ErrorController.java +++ b/InstallManager_java/src/org/tizen/installmanager/lib/ErrorController.java @@ -105,7 +105,7 @@ public class ErrorController { PROXY_SERVER_IS_WRONG("Proxy server connection failed. Check the proxy server."), PROXY_CONNECT_ERROR("Proxy server connection failed. Check the proxy server."), URL_SECURITY_EXCEPTION("Proxy server URL security error."), - URL_ADDRESS_IS_WRONG("Incorrect URL."), + UNKNOWN_HOST_EXCEPTION("Fail to resolve host name."), URL_PORT_IS_WRONG("Incorrect port number."), NO_ROUTE_TO_HOST("Server not found. Check the URL."), NOT_LOGGED_IN("Login failed."), -- 2.7.4