Re: Re: [interface-announce] info/cws mav21 : new ::com::sun::star::io::XSeekableInputStream interface

View: New views
1 Messages — Rating Filter:   Alert me  

Parent Message unknown Re: Re: [interface-announce] info/cws mav21 : new ::com::sun::star::io::XSeekableInputStream interface

by Mikhail Voitenko :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Stephan Bergmann wrote:

> ---8<---
> published service SequenceInputStream : XSeekableInputStream
> {
>     /** allows to create a stream based on the sequence.
>      */
>     createStreamFromSequence( [in] sequence<byte> aData )
>         raises ( com::sun::star::lang::IllegalArgumentException );
> };
> ---8<---
>
> Under what circumstances would IllegalArgumentException be thrown?

You are right, it should not be thrown at all.
I was confused by internal usage of XInitialization::initialize() in
constructor implementation. But in case the generated by UNO constructor
generates the arguments list wrongly ( that sounds quite unlikely ) it
should handle the result exceptions itself.
I will remove the exception declaration.

Thanks,
Mikhail.

---------------------------------------------------------------------
To unsubscribe, e-mail: interface-discuss-unsubscribe@...
For additional commands, e-mail: interface-discuss-help@...