How to redefine default Exception

Help
FredoSp
2011-08-23
2013-04-17
  • FredoSp

    FredoSp - 2011-08-23

    Hi,

    First of all thx for this plugins, it's very usefull.

    I have a problem with default template for Exceptions, i change the message for this template but there is no change when i apply the javadoc comment (ctrl + alt + j over the method), always prints the default template.

    /**
    * @throws ${e} the ${e.sfl()}
    */

    To edit the default template for Exceptions, i did the next steps:
    - Go to Window->Preferences->Java->JAutodoc->Templates
    - Select Default template into Exception kind and clic edit
    - Then I typed something like this:
    /**
    * @throws blalbalbablabla  ${e}
    */

    Can anyone help me?

    Thanks a lot.

     
  • Martin Kesting

    Martin Kesting - 2011-08-23

    Hi,

    you are right so far, but you have to switch the arguments of the throws-tag:

    /**
    * @throws ${e} blalbalbablabla
    */

    Otherwise it's not a valid Javadoc comment.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks