Skip to content
This repository has been archived by the owner on Dec 20, 2021. It is now read-only.

Feat(Error): Adds descriptive error messages #29

Merged
merged 5 commits into from
Jul 19, 2016

Conversation

Sud-Puth
Copy link
Contributor

  • Adds descriptive error messages.
  • Moves more messages to externalization.
  • Condition checking of the payload in the UI.

DCO 1.1 Signed-off-by: Sudheer Reddy Puthana sputhan@us.ibm.com

- Adds descriptive error messages.
- Moves more messages to externalization.
- Condition checking of the payload in the UI.

DCO 1.1 Signed-off-by: Sudheer Reddy Puthana <sputhan@us.ibm.com>
Sud-Puth added 2 commits July 19, 2016 17:23
- Add missing file

DCO 1.1 Signed-off-by: Sudheer Reddy Puthana <sputhan@us.ibm.com>
DCO 1.1 Signed-off-by: Sudheer Reddy Puthana <sputhan@us.ibm.com>
@@ -134,7 +134,13 @@ public void run() {

} catch (Exception e) {
logger.error(Messages.getString("SetupThread.ERROR_COLLECTION_INIT") + e.getMessage()); //$NON-NLS-1$
updateConfigObject("0",Constants.NOT_READY, Messages.getString("SetupThread.ERROR"), Messages.getString("SetupThread.CHECK_LOGS")); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
if (e.getClass().getSimpleName().equalsIgnoreCase("UnauthorizedException")) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you just do an if (e instanceof UnauthorizedException) ?

@dgterry dgterry merged commit 7a40674 into watson-developer-cloud:master Jul 19, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants