On Sun, May 10, 2015 at 11:00 PM, Chamila De Alwis <chami...@wso2.com>
wrote:

> Hi Lahiru,
> On Sun, May 10, 2015 at 8:56 PM, Lahiru Sandaruwan <lahi...@wso2.com>
> wrote:
>
>> So what we need to do at Stratos Rest API(The API we have now), is to
>> catch the status code and message from CC Rest API and send both, as they
>> are, to end user. No String comparison required.
>>
>
> Wouldn't there be inter-component communication that needs to make
> decisions based on the response? For example AS makes calls to CC and
> decides what to do based on the exception type?
>

I think answer is local error codes. This will improve granularity as much
as we want. See #5 at [1].

Thanks.

[1]
http://devproconnections.com/web-development/restful-api-development-best-practices


>
> Anyways, we are already doing String comparisons because of the initial
> issue of custom exceptions not being passed to the client. I'm sure we will
> be able to circumvent this problem at the time of service design.
>
>
> Regards,
> Chamila de Alwis
> Software Engineer | WSO2 | +94772207163
> Blog: code.chamiladealwis.com
>
>
>


-- 
--
Lahiru Sandaruwan
Committer and PMC member, Apache Stratos,
Senior Software Engineer,
WSO2 Inc., http://wso2.com
lean.enterprise.middleware

phone: +94773325954
email: lahi...@wso2.com blog: http://lahiruwrites.blogspot.com/
linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146

Reply via email to