From 55cb0333814ee596db47cadda82406b446ea80fc Mon Sep 17 00:00:00 2001 From: "ggh1933.go" Date: Wed, 16 Mar 2016 10:42:46 +0900 Subject: [PATCH] [SRADA-204]it is replacing an existing error code to the new code - New Errorcode give more useful information and detail descriptions than old - Sync Error Formats Change-Id: I7e316887952993b3af3b3ca82a0fb25e3f5ef62f --- .../org/tizen/dynamicanalyzer/common/DAResult.java | 52 +++++++++++----------- .../dynamicanalyzer/nl/UserErrorWarningLabels.java | 8 +++- .../nl/UserErrorWarningLabels.properties | 36 +++++++++------ 3 files changed, 55 insertions(+), 41 deletions(-) mode change 100644 => 100755 org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/nl/UserErrorWarningLabels.java mode change 100644 => 100755 org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/nl/UserErrorWarningLabels.properties diff --git a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/common/DAResult.java b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/common/DAResult.java index 4b1c8ee..a4121a1 100755 --- a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/common/DAResult.java +++ b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/common/DAResult.java @@ -31,28 +31,28 @@ import org.tizen.dynamicanalyzer.util.Logger; public class DAResult { public enum ErrorCode { SUCCESS(0, "Success!"), - ERR_EXCEPTION_OCCURRED(-1, "Excpetion is occurred "), + ERR_EXCEPTION_OCCURRED(-1, "Exception is occurred."), // error that is not shown to the user (3 digits) ( -100 ~ -999 ) - ERR_INVALID_VERSION(-100, "not supported version"), - ERR_REMOTE_PORT_GET_FAILED(-101, "remote port get failed!!"), - ERR_CONTROL_SOCKET_CREATION_FAIL(-102, "control socket creation is failed"), - ERR_DATA_SOCKET_CREATION_FAIL(-103, "data socket creation is failed"), - ERR_CONTROL_SOCKET_CONNECTION_CLOSED(-104, "connection closed"), - ERR_PROTOCOL_NOT_SUPPORTED(-105, "procotol is not supported"), - ERR_FILE_IS_NOT_EXISTS(-201, "File is not exist!"), - ERR_UPLOAD_FILE_FAILED(-202, "file upload is failed!"), - ERR_SDB_PUSH_FAILED(-203, "sdb push returns null"), - ERR_READELF_SIZE_GET_FAILED(-204, "readelf size get failed"), - ERR_READELF_UPLOAD_FAILED(-205, "readelf file size is different!!"), - ERR_MSG_STOP_FAIL(-502, "stop message is not ok"), - ERR_MSG_RUNTIME_FAIL(-503, "runtime message is not ok"), - ERR_TARGET_INFO_GET_FAIL(-505, "target info get fail..."), - ERR_KEEP_ALIVE(-506, "keep alive message ack fail..."), - ERR_RECEIVE_ACK_FAIL(-508, "receiving ack message fail..."), - ERR_PROCESS_ADD_INFO_GET_FAIL(-509, "failed to get process add info..."), - ERR_SWAP_INSTRUMENTATION_FAIL(-510, "failed to instrument..."), - ERR_DA_IS_EXIT(-901, "Dynamic Analyzer is closing"), + ERR_INVALID_VERSION(-100, "Protocol version is not supported or invalid."), + ERR_REMOTE_PORT_GET_FAILED(-101, "Communicator failed to get remote port."), + ERR_CONTROL_SOCKET_CREATION_FAIL(-102, "Communicator failed to create Control Socket."), + ERR_DATA_SOCKET_CREATION_FAIL(-103, "Communicator failed to create Data Socket."), + ERR_CONTROL_SOCKET_CONNECTION_CLOSED(-104, "Connection closed."), + ERR_PROTOCOL_NOT_SUPPORTED(-105, "Protocol is not supported by current communicator."), + ERR_FILE_IS_NOT_EXISTS(-201, "File is not exist."), + ERR_UPLOAD_FILE_FAILED(-202, "File upload is failed."), + ERR_SDB_PUSH_FAILED(-203, "Sdb push is failed."), + ERR_READELF_SIZE_GET_FAILED(-204, "Readelf size get failed."), + ERR_READELF_UPLOAD_FAILED(-205, "Readelf file size is different."), + ERR_MSG_STOP_FAIL(-502, "Communicator failed to send 'Trace Stop Message'."), + ERR_MSG_RUNTIME_FAIL(-503, "Runtime message is not ok."), + ERR_TARGET_INFO_GET_FAIL(-505, "Communicator failed to send 'Target Info Message'."), + ERR_KEEP_ALIVE(-506, "Communicator failed to send 'Keep Alive Message'."), + ERR_RECEIVE_ACK_FAIL(-508, "Communicator failed to receive 'Ack Message'."), + ERR_PROCESS_ADD_INFO_GET_FAIL(-509, "Communicator failed to get 'process add info'."), + ERR_SWAP_INSTRUMENTATION_FAIL(-510, "Communicator failed to send 'Instrument Message'."), + ERR_DA_IS_EXIT(-901, "Dynamic Analyzer is closing."), // error that is shown to the user (4 digits) ( -1000 ~ -9999 ) ERR_OUT_OF_MEMORY(-1001, UserErrorWarningLabels.ERROR_OUT_OF_MEMORY), @@ -65,20 +65,20 @@ public class DAResult { ERR_CONFIG_FAILED(-1100, UserErrorWarningLabels.ERROR_CONFIGURATION_FAILED), ERR_LIB_NOTFOUND_INRPM(-1101, UserErrorWarningLabels.ERROR_LIB_NOT_FOUND_INRPM), ERR_RPM_NOTFOUND(-1102, UserErrorWarningLabels.ERROR_RPM_NOT_FOUND), - ERR_START_DATA_CHANNEL(-2001, UserErrorWarningLabels.ERROR_INTERNAL_REASON), - ERR_START_MESSAGE_PARSER(-2002, UserErrorWarningLabels.ERROR_INTERNAL_REASON), - ERR_START_LOG_PARSER(-2003, UserErrorWarningLabels.ERROR_INTERNAL_REASON), + ERR_START_DATA_CHANNEL(-2001, UserErrorWarningLabels.ERR_START_DATA_CHANNEL), + ERR_START_MESSAGE_PARSER(-2002, UserErrorWarningLabels.ERR_START_MESSAGE_PARSER), + ERR_START_LOG_PARSER(-2003, UserErrorWarningLabels.ERR_START_LOG_PARSER), ERR_STOP_DATA_CHANNEL(-2004, UserErrorWarningLabels.ERROR_INTERNAL_REASON), ERR_STOP_MESSAGE_PARSER(-2005, UserErrorWarningLabels.ERROR_INTERNAL_REASON), ERR_STOP_LOG_PARSER(-2006, UserErrorWarningLabels.ERROR_INTERNAL_REASON), - ERR_NO_PROCINFO(-2007, UserErrorWarningLabels.ERROR_INTERNAL_REASON), + ERR_NO_PROCINFO(-2007, UserErrorWarningLabels.ERR_NO_PROCINFO), ERR_CONTINUITY_BROKEN(-2010, UserErrorWarningLabels.WARNING_OVERHEAD_EXPLODE), - ERR_WRONG_MESSAGE_FORMAT(-2011, UserErrorWarningLabels.ERROR_INTERNAL_REASON), + ERR_WRONG_MESSAGE_FORMAT(-2011, UserErrorWarningLabels.ERR_WRONG_MESSAGE_FORMAT), ERR_DATA_SOCKET_CLOSED(-2012, UserErrorWarningLabels.ERROR_CONNECTION_CLOSED), ERR_DOWNLOAD_FILE_FAILED(-2013, UserErrorWarningLabels.ERROR_DOWNLOAD_FILE_FAILED), ERR_MSG_START_FAIL(-2101, UserErrorWarningLabels.ERROR_START_TRACE_FAILED), - ERR_MSG_SEND_FAIL(-2102, UserErrorWarningLabels.ERROR_INTERNAL_REASON), + ERR_MSG_SEND_FAIL(-2102, UserErrorWarningLabels.ERR_MSG_SEND_FAIL), ERR_BIN_INFO_GET_FAIL(-2103, UserErrorWarningLabels.ERROR_FAILED_OPERATION), ERR_SCREENSHOT_GET_FAIL(-2104, UserErrorWarningLabels.ERROR_SCREENSHOT_FAILED), diff --git a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/nl/UserErrorWarningLabels.java b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/nl/UserErrorWarningLabels.java old mode 100644 new mode 100755 index 7db24a9..b3bcf15 --- a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/nl/UserErrorWarningLabels.java +++ b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/nl/UserErrorWarningLabels.java @@ -77,7 +77,13 @@ public class UserErrorWarningLabels extends NLS { public static String WARNING_FILENAME_INVALID_CHAR; public static String WARNING_FILENAME_EMPTY; public static String WARNING_FILENAME_TOO_LONG; - + + public static String ERR_START_DATA_CHANNEL; + public static String ERR_START_MESSAGE_PARSER; + public static String ERR_START_LOG_PARSER; + public static String ERR_NO_PROCINFO; + public static String ERR_WRONG_MESSAGE_FORMAT; + public static String ERR_MSG_SEND_FAIL; static { NLS.initializeMessages(BUNDLE_NAME, UserErrorWarningLabels.class); } diff --git a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/nl/UserErrorWarningLabels.properties b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/nl/UserErrorWarningLabels.properties old mode 100644 new mode 100755 index 6973d0b..d0ac93e --- a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/nl/UserErrorWarningLabels.properties +++ b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/nl/UserErrorWarningLabels.properties @@ -1,34 +1,34 @@ ERROR_LIBTRACE_START=Library tracing cannot be started properly. -ERROR_RPM_NOT_FOUND=Library rpm package file cannot be found. -ERROR_LIB_NOT_FOUND_INRPM=Library file cannot be found in rpm package. +ERROR_RPM_NOT_FOUND=Library rpm package file cannot be found. +ERROR_LIB_NOT_FOUND_INRPM=Library file cannot be found in rpm package. ERROR_NO_APPID_FOR_LAUNCHPAD=There is no appid for launch_app. -ERROR_DEVICE_CONNECTION=Failed to connect with the device.\nPlease re-run Dynamic Analyzer and reboot the device. -ERROR_DEVICE_NOT_FOUND=There is no connected device.\nPlease check the connection with device. +ERROR_DEVICE_CONNECTION= Failed to connect with the device. \nPlease re-run Dynamic Analyzer and reboot the device. +ERROR_DEVICE_NOT_FOUND=There is no connected device. \nPlease check the connection with device. ERROR_UNSUPPORTED_PROTOCOL=This version of platform of the device is not supported.\nPlease update the platform of device and retry. -ERROR_BY_SECURITY_REASON=This operation is not allowed due to security reason. +ERROR_BY_SECURITY_REASON=Current Device is not avaliable Root or developer account mode. ERROR_APP_SELECT_BY_SECURITY=Selected application cannot be traced due to security reason. -ERROR_NONEXIST_APPLICATION=does not exist in device.\nPlease check that the application has been installed successfully. -ERROR_UNSUPPORTED_APPLICATION=is unsupported application. +ERROR_NONEXIST_APPLICATION=Does not exist in device.\nPlease check that the application has been installed successfully. +ERROR_UNSUPPORTED_APPLICATION=Selected Application is invalid. \nPlease select another application or restart DA. -ERROR_CONFIGURATION_FAILED=Configuration is failed. -ERROR_CONNECTION_CLOSED=Connection with target device is closed.\nPlease check the connection with device. +ERROR_CONFIGURATION_FAILED=Could not retrieve configuration from device. \nPlease check the connection with device. +ERROR_CONNECTION_CLOSED="dataSocketClosed" status was checked in DataChannelThread. \nPlease re-connect device. ERROR_DOWNLOAD_FILE_FAILED=Downloading file is failed. -ERROR_FAILED_OPERATION=Operation is failed. +ERROR_FAILED_OPERATION=Could not retrieve binary information from device. \nPlease re-connect device. ERROR_INTERNAL_REASON=Failed by internal reason.\nPlease try again or restart DA. ERROR_BY_UNKNOWN_REASON=Failed by unknown reason. ERROR_OUT_OF_MEMORY=Out of memory in Dynamic Analyzer. -ERROR_START_TRACE_FAILED=Cannot start trace.\nCurrent application may not be available for trace. +ERROR_START_TRACE_FAILED=Sending TraceStartMessage is failed. \nSelect another application available for trace. ERROR_NONEXIST_BINARY=Binary does not exist in device. ERROR_NONELF_BINARY=Binary is not ELF format. -ERROR_SCREENSHOT_FAILED=Taking screen-shot is failed. +ERROR_SCREENSHOT_FAILED=Communicator don't receive AckMessage for Screenshot from device. \nPlease re-connect device. -ERROR_UIHIERARCHY_FAILED=It was unable to get information of UI objects. Please try again. -ERROR_UI_OBJECT_NOT_FOUND=Requested UI object is not found. +ERROR_UIHIERARCHY_FAILED=Communicator failed to get information of UI objects. Please try again. +ERROR_UI_OBJECT_NOT_FOUND=Communicator didn't find Requested UI object from device. Please try again. ERROR_UI_OBJECT_SCREENSHOT_NOT_AVAILABLE=Application is running in background.\nTo get screenshot, application should be in foreground. ERROR_UIHIERARCHY_CANCEL_FAILED=It was unable to cancel getting information of UI objects. @@ -43,3 +43,11 @@ WARNING_USER_CANCEL=Operation is canceled by user. WARNING_FILENAME_INVALID_CHAR=File name contains invalid character. WARNING_FILENAME_EMPTY=File name is empty. WARNING_FILENAME_TOO_LONG=File name is too long. + +ERR_START_DATA_CHANNEL=Failed to start StartDataChannel. \nPlease try again or restart DA. +ERR_START_MESSAGE_PARSER=Failed to start MessageParser. \nPlease try again or restart DA. +ERR_START_LOG_PARSER=Failed to start LogParser. \nPlease try again or restart DA. +ERR_NO_PROCINFO=The process is not possible tracing. \nPlease select another process. +ERR_WRONG_MESSAGE_FORMAT=Payload of AckMessage is null or exceeded "MAX_PAYLOAD_SIZE". \nPlease re-connect device. +ERR_MSG_SEND_FAIL=No ack from device. \nPlease re-connect device. + -- 2.7.4