How to redefine default Exception

  • FredoSp

    FredoSp - 2011-08-23


    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


    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.


Log in to post a comment.

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

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks