You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by Norman Maurer <no...@apache.org> on 2007/05/18 16:26:26 UTC

Re: [jira] Commented: (MIME4J-16) Allow exceptions from a ContentHandler

Im whould prefer to release mime4j first..

WDYT ?

bye
Norman

Norman Maurer (JIRA) schrieb:
>     [ https://issues.apache.org/jira/browse/MIME4J-16?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12496804 ] 
>
> Norman Maurer commented on MIME4J-16:
> -------------------------------------
>
> I like the idea... The question is should we apply the patch before tagging the svn for 0.3 release or after ?
>
>   
>> Allow exceptions from a ContentHandler
>> --------------------------------------
>>
>>                 Key: MIME4J-16
>>                 URL: https://issues.apache.org/jira/browse/MIME4J-16
>>             Project: Mime4j
>>          Issue Type: Improvement
>>            Reporter: Jukka Zitting
>>         Assigned To: Norman Maurer
>>         Attachments: MimeException.patch
>>
>>
>> There is currently no good way for a Mime4j ContentHandler to indicate that it has failed to process a message event and that no further events should be generated. Compare this with for example the SAX ContentHandler interface that allows implementing classes to throw SAXExceptions.
>> Being able to throw such processing exceptions is important for example for a handler that wants to incrementally store a message in a backend store like a relational database or a JCR content repository.
>> My proposal is to add a new MimeException exception class and allow it to be thrown from any of the ContentHandler methods. Such a change would be incompatible with any parser and other classes that call the ContentHandler methods (even indirectly, for example through the MimeStreamParser class), but existing classes that implement the ContentHandler interface would not be affected.
>>     
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Re: [jira] Commented: (MIME4J-16) Allow exceptions from a ContentHandler

Posted by Stefano Bagnara <ap...@bago.org>.
Norman Maurer ha scritto:
> Im whould prefer to release mime4j first..
> 
> WDYT ?

+1

Stefano


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org