You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by Jean-Sebastien Delfino <js...@apache.org> on 2006/09/20 19:09:20 UTC

[C++] Tuscany exceptions vs SCA-C++ exceptions

Hi,

The SCA spec for C++ defines some SCA exceptions for use in an SCA C++ 
client or C++ component implementation. These exceptions are currently 
distributed with our CPP extension, but there are a number of places in 
our runtime code (core runtime and other extensions) where we currently 
still use these exceptions (for historical reasons), forcing us to 
duplicate some of the osoa/sca includes into these extensions, or just 
throw "char *" exceptions in some places in lack of a better Tuscany 
exception.

How about we clean this up a little :) and do the following:
- Declare Tuscany core runtime exceptions (probably similar to the ones 
we now have under osoa/sca).
- Have extensions use them or extend them.
- In the CPP extension, catch these exceptions and translate them to the 
SCA for C++ specific ones.
- Review all places where we throw / catch exceptions and either handle 
them correctly or place a //TODO in the code as a reminder.

I volunteer to do that  cleanup work in the Ruby and WS extensions. 
Thoughts? Any other volunteers?

-- 
Jean-Sebastien


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


Re: [C++] Tuscany exceptions vs SCA-C++ exceptions

Posted by Andrew Borley <aj...@gmail.com>.
+1. I'll do the Python extension.

On 9/20/06, Pete Robbins <ro...@googlemail.com> wrote:
> That's exactly what I intended when moving the SCARuntimeException to the
> CPP extension. I think we need a really good trawl of exception throwing
> handling so this is a great time to do it.
>
> I'll take a look at the core runtime and cpp extension.
>
> Cheers,
>
>
> On 20/09/06, Jean-Sebastien Delfino <js...@apache.org> wrote:
> >
> > Hi,
> >
> > The SCA spec for C++ defines some SCA exceptions for use in an SCA C++
> > client or C++ component implementation. These exceptions are currently
> > distributed with our CPP extension, but there are a number of places in
> > our runtime code (core runtime and other extensions) where we currently
> > still use these exceptions (for historical reasons), forcing us to
> > duplicate some of the osoa/sca includes into these extensions, or just
> > throw "char *" exceptions in some places in lack of a better Tuscany
> > exception.
> >
> > How about we clean this up a little :) and do the following:
> > - Declare Tuscany core runtime exceptions (probably similar to the ones
> > we now have under osoa/sca).
> > - Have extensions use them or extend them.
> > - In the CPP extension, catch these exceptions and translate them to the
> > SCA for C++ specific ones.
> > - Review all places where we throw / catch exceptions and either handle
> > them correctly or place a //TODO in the code as a reminder.
> >
> > I volunteer to do that  cleanup work in the Ruby and WS extensions.
> > Thoughts? Any other volunteers?
> >
> > --
> > Jean-Sebastien
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> > For additional commands, e-mail: tuscany-dev-help@ws.apache.org
> >
> >
>
>
> --
> Pete
>
>

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


Re: [C++] Tuscany exceptions vs SCA-C++ exceptions

Posted by Jean-Sebastien Delfino <js...@apache.org>.
Pete Robbins wrote:
> That's exactly what I intended when moving the SCARuntimeException to the
> CPP extension. I think we need a really good trawl of exception throwing
> handling so this is a great time to do it.
>
> I'll take a look at the core runtime and cpp extension.
>
> Cheers,
>
>
> On 20/09/06, Jean-Sebastien Delfino <js...@apache.org> wrote:
>>
>> Hi,
>>
>> The SCA spec for C++ defines some SCA exceptions for use in an SCA C++
>> client or C++ component implementation. These exceptions are currently
>> distributed with our CPP extension, but there are a number of places in
>> our runtime code (core runtime and other extensions) where we currently
>> still use these exceptions (for historical reasons), forcing us to
>> duplicate some of the osoa/sca includes into these extensions, or just
>> throw "char *" exceptions in some places in lack of a better Tuscany
>> exception.
>>
>> How about we clean this up a little :) and do the following:
>> - Declare Tuscany core runtime exceptions (probably similar to the ones
>> we now have under osoa/sca).
>> - Have extensions use them or extend them.
>> - In the CPP extension, catch these exceptions and translate them to the
>> SCA for C++ specific ones.
>> - Review all places where we throw / catch exceptions and either handle
>> them correctly or place a //TODO in the code as a reminder.
>>
>> I volunteer to do that  cleanup work in the Ruby and WS extensions.
>> Thoughts? Any other volunteers?
>>
>> -- 
>> Jean-Sebastien
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
>> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>>
>>
>
>
Great!

Pete, if you do the core runtime, do you want to take a shot at defining 
the base Tuscany core exceptions that we will all use or extend?

If you define these exceptions I should be able to reuse them as-is in 
the Ruby extension. Then the Web Service extension will probably need 
one or two more Web Service specific exceptions extending the core ones 
to carry Web Service fault specific info.

Let me know... Thanks.

-- 
Jean-Sebastien


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


Re: [C++] Tuscany exceptions vs SCA-C++ exceptions

Posted by Pete Robbins <ro...@googlemail.com>.
That's exactly what I intended when moving the SCARuntimeException to the
CPP extension. I think we need a really good trawl of exception throwing
handling so this is a great time to do it.

I'll take a look at the core runtime and cpp extension.

Cheers,


On 20/09/06, Jean-Sebastien Delfino <js...@apache.org> wrote:
>
> Hi,
>
> The SCA spec for C++ defines some SCA exceptions for use in an SCA C++
> client or C++ component implementation. These exceptions are currently
> distributed with our CPP extension, but there are a number of places in
> our runtime code (core runtime and other extensions) where we currently
> still use these exceptions (for historical reasons), forcing us to
> duplicate some of the osoa/sca includes into these extensions, or just
> throw "char *" exceptions in some places in lack of a better Tuscany
> exception.
>
> How about we clean this up a little :) and do the following:
> - Declare Tuscany core runtime exceptions (probably similar to the ones
> we now have under osoa/sca).
> - Have extensions use them or extend them.
> - In the CPP extension, catch these exceptions and translate them to the
> SCA for C++ specific ones.
> - Review all places where we throw / catch exceptions and either handle
> them correctly or place a //TODO in the code as a reminder.
>
> I volunteer to do that  cleanup work in the Ruby and WS extensions.
> Thoughts? Any other volunteers?
>
> --
> Jean-Sebastien
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>
>


-- 
Pete