You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@airavata.apache.org by Amila Jayasekara <th...@gmail.com> on 2013/07/03 16:24:10 UTC
Question about GFac Exceptions
Hi All,
In GFac I see following 2 types of exception classes.
1. GFacProviderException
2. GFacException
When should we use GFacProviderException and when should we use
GFacException ?
I see both exception types are used interchangeably within providers. I am
bit confused over this.
Appreciate help.
Thanks
Amila
Re: Question about GFac Exceptions
Posted by Suresh Marru <sm...@apache.org>.
On Jul 3, 2013, at 7:42 PM, Amila Jayasekara <th...@gmail.com> wrote:
> Hi Chathura,
>
> My understanding is same. If I understood correctly we should not use
> GFacException within providers but use GFacProviderException (Currently we
> use both exception types at Provider level, E.g :- GFacProvider). Then at
> the framework level we use only GFacException.
Makes perfect sense. Glad you are cleaning all this up.
Suresh
>
> Thanks
> Amila
>
>
> On Wed, Jul 3, 2013 at 7:22 PM, Chathura Herath <ch...@cs.indiana.edu>wrote:
>
>> I d assume ProviderException is used to wrap exceptions from third party
>> componenets like globus/hadoop.
>>
>> On Wednesday, July 3, 2013, Amila Jayasekara <th...@gmail.com>
>> wrote:
>>> Hi All,
>>>
>>> In GFac I see following 2 types of exception classes.
>>>
>>> 1. GFacProviderException
>>> 2. GFacException
>>>
>>> When should we use GFacProviderException and when should we use
>>> GFacException ?
>>> I see both exception types are used interchangeably within providers. I
>> am
>>> bit confused over this.
>>>
>>> Appreciate help.
>>>
>>> Thanks
>>> Amila
>>>
>>
>> --
>> Chathura Herath Ph.D
>> http://people.apache.org/~chathura/
>> http://chathurah.blogspot.com/
>>
Re: Question about GFac Exceptions
Posted by Amila Jayasekara <th...@gmail.com>.
Hi Chathura,
My understanding is same. If I understood correctly we should not use
GFacException within providers but use GFacProviderException (Currently we
use both exception types at Provider level, E.g :- GFacProvider). Then at
the framework level we use only GFacException.
Thanks
Amila
On Wed, Jul 3, 2013 at 7:22 PM, Chathura Herath <ch...@cs.indiana.edu>wrote:
> I d assume ProviderException is used to wrap exceptions from third party
> componenets like globus/hadoop.
>
> On Wednesday, July 3, 2013, Amila Jayasekara <th...@gmail.com>
> wrote:
> > Hi All,
> >
> > In GFac I see following 2 types of exception classes.
> >
> > 1. GFacProviderException
> > 2. GFacException
> >
> > When should we use GFacProviderException and when should we use
> > GFacException ?
> > I see both exception types are used interchangeably within providers. I
> am
> > bit confused over this.
> >
> > Appreciate help.
> >
> > Thanks
> > Amila
> >
>
> --
> Chathura Herath Ph.D
> http://people.apache.org/~chathura/
> http://chathurah.blogspot.com/
>
Question about GFac Exceptions
Posted by Chathura Herath <ch...@cs.indiana.edu>.
I d assume ProviderException is used to wrap exceptions from third party
componenets like globus/hadoop.
On Wednesday, July 3, 2013, Amila Jayasekara <th...@gmail.com>
wrote:
> Hi All,
>
> In GFac I see following 2 types of exception classes.
>
> 1. GFacProviderException
> 2. GFacException
>
> When should we use GFacProviderException and when should we use
> GFacException ?
> I see both exception types are used interchangeably within providers. I am
> bit confused over this.
>
> Appreciate help.
>
> Thanks
> Amila
>
--
Chathura Herath Ph.D
http://people.apache.org/~chathura/
http://chathurah.blogspot.com/