Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 340911 - Provide better exceptions and information when launching and debugging
Summary: Provide better exceptions and information when launching and debugging
Status: NEW
Alias: None
Product: JSDT
Classification: WebTools
Component: Debug (show other bugs)
Version: 3.3   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Michael Rennie CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-24 16:59 EDT by Michael Rennie CLA
Modified: 2011-03-24 16:59 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Rennie CLA 2011-03-24 16:59:46 EDT
code from HEAD

Currently when an exception occurs we either trap it and eat it or we throw a general kind of exception and let the launch framework handle it. A good example of this is when you launch a remote debug session, if *anything* goes wrong we throw an IOException and let the platform launch framework handle - which surfaces as an error dialog and not-helpful message.

We should improve this by specializing exceptions so that we can handle them differently when different failure cases occur. For example if the connect timed for a remote debug session, we could throw a specialized exception that could be handled differently by the JavaScriptLaunchDelegate.