DZone Forums
Go Back   DZone Forums > Community > Tools & IDEs > Eclipse
Reload this Page Code Templates: enclosing exception
Notices
Reply
 
LinkBack Thread Tools Display Modes
  (#1 (permalink)) Old
Member
 
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Jun 2009
Default Code Templates: enclosing exception - 06-15-2009, 11:09 AM

Hi,

I want to have a java code template, which should look something like:

Code:
throw new ${exeption_wrapper_type}(${enclosing_exception})
where ${enclosing_exception} evaluates to the exception catched by a surrounding catch block? Is this possible?

Thanks for answers.
Reply With Quote
  (#2 (permalink)) Old
Member
 
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Jun 2009
Default 06-16-2009, 02:37 AM

I have to use ${exception_variable_name}, which isn't available in Eclipse 3.1. I should really think about migrating to 3.4.
Reply With Quote
Reply

Tags
template

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Exception in Software update sebabar Eclipse 0 04-16-2009 03:42 AM
Interpret C code in java Code sammyac Java 0 10-15-2008 09:17 AM
email templates i18n jj12381 Java 0 08-13-2008 03:07 PM
Servlet /jpetstore threw load() exception ganeshduke Java 1 06-27-2008 06:39 AM
Breaking when exception is thrown jsfguy123 Eclipse 0 06-11-2008 03:49 PM


Copyright 1997-2009, DZone, Inc.
vBulletin Skin developed by: vBStyles.com