[JIRA] Created: (APF-1147) mailengine does not throw exception

3 messages Options
Embed this post
Permalink
AppFuse - Issues mailing list

[JIRA] Created: (APF-1147) mailengine does not throw exception

Reply Threaded More More options
Print post
Permalink
mailengine does not throw exception
-----------------------------------

                 Key: APF-1147
                 URL: http://issues.appfuse.org/browse/APF-1147
             Project: AppFuse
          Issue Type: Bug
            Reporter: tibi
            Assignee: Matt Raible
         Attachments: patchMailEngineTryCatch.txt

two methods catch something they should trhow. this is the right code:

    public void sendMessage(SimpleMailMessage msg, String templateName,
Map model)  throws VelocityException{
        String result =
VelocityEngineUtils.mergeTemplateIntoString(velocityEngine,
templateName, model);
        msg.setText(result);
        send(msg);
    }

    public void send(SimpleMailMessage msg) throws MailException {
            mailSender.send(msg);
    }

see patch

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.appfuse.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

AppFuse - Issues mailing list

[JIRA] Updated: (APF-1147) mailengine does not throw exception

Reply Threaded More More options
Print post
Permalink

     [ http://issues.appfuse.org/browse/APF-1147?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matt Raible updated APF-1147:
-----------------------------

    Affects Version/s: 2.0.2
        Fix Version/s: 2.1
          Component/s: Service Layer

> mailengine does not throw exception
> -----------------------------------
>
>                 Key: APF-1147
>                 URL: http://issues.appfuse.org/browse/APF-1147
>             Project: AppFuse
>          Issue Type: Bug
>          Components: Service Layer
>    Affects Versions: 2.0.2
>            Reporter: tibi
>            Assignee: Matt Raible
>             Fix For: 2.1
>
>         Attachments: patchMailEngineTryCatch.txt
>
>
> two methods catch something they should trhow. this is the right code:
>     public void sendMessage(SimpleMailMessage msg, String templateName,
> Map model)  throws VelocityException{
>         String result =
> VelocityEngineUtils.mergeTemplateIntoString(velocityEngine,
> templateName, model);
>         msg.setText(result);
>         send(msg);
>     }
>     public void send(SimpleMailMessage msg) throws MailException {
>             mailSender.send(msg);
>     }
> see patch

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.appfuse.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

AppFuse - Issues mailing list

[JIRA] Updated: (APF-1147) mailengine does not throw exception

Reply Threaded More More options
Print post
Permalink
In reply to this post by AppFuse - Issues mailing list

     [ http://issues.appfuse.org/browse/APF-1147?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matt Raible updated APF-1147:
-----------------------------

    Fix Version/s:     (was: 2.1.0-M1)
                   2.1.0-M2

> mailengine does not throw exception
> -----------------------------------
>
>                 Key: APF-1147
>                 URL: http://issues.appfuse.org/browse/APF-1147
>             Project: AppFuse
>          Issue Type: Bug
>          Components: Service Layer
>    Affects Versions: 2.0.2
>            Reporter: tibi
>            Assignee: Matt Raible
>             Fix For: 2.1.0-M2
>
>         Attachments: patchMailEngineTryCatch.txt
>
>
> two methods catch something they should trhow. this is the right code:
>     public void sendMessage(SimpleMailMessage msg, String templateName,
> Map model)  throws VelocityException{
>         String result =
> VelocityEngineUtils.mergeTemplateIntoString(velocityEngine,
> templateName, model);
>         msg.setText(result);
>         send(msg);
>     }
>     public void send(SimpleMailMessage msg) throws MailException {
>             mailSender.send(msg);
>     }
> see patch

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.appfuse.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]