Bug 13492 - Should handle JavaModelExceptions that contains CoreException more gracefully
Summary: Should handle JavaModelExceptions that contains CoreException more gracefully
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.0 M6   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-11 06:32 EDT by Jerome Lanneluc CLA
Modified: 2002-04-26 04:53 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jerome Lanneluc CLA 2002-04-11 06:32:20 EDT
Build 20020409

Bug 13466 shows that when a JavaModelException that wraps a CoreException is 
thrown, the UI doesn't extract the CoreException info.

It should use JavaModelException.getException() to extract this info and thus 
display the status of the CoreException.

This would allow faster debugging and this would avoid moving bugs to JDT/Core 
when it is a Platform problem.
Comment 1 Erich Gamma CLA 2002-04-12 04:05:59 EDT
I agree that the wrappered information should not be lost. However, this should 
be done by the JavaModelException transparently, i.e., when a CoreException is 
wrappered then the getStatus call should be forwarded by the JavaModelException 
to the wrappered CoreException. 

This is also the approach taken in Throwable in JDK 1.4 were there is support 
for exception wrappering in Throwable directly.

Moving back to JDT core.
Comment 2 Jerome Lanneluc CLA 2002-04-26 04:53:32 EDT
When a JavaModelException wraps a CoreException, the status of the 
CoreException is now remembered instead of creating a JavaModelStatus.