You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by Paul Lindner <pl...@linkedin.com> on 2010/06/24 21:39:10 UTC

Re: NOT_IMPLEMENTED - supporting just part of a service and possible error in PHP ApiServlet

Seems correct.  Can one of the PHP experts chime in here?


On Thu, Jun 24, 2010 at 10:57 AM, Justin Wyllie
<ju...@hotmail.co.uk>wrote:

>
> Sorry...
> In ApiServlet
>
> Instead of:
>  try {             throw new SocialSpiException("The service " .
> $requestItem->getService() . " is not implemented",
> ResponseError::$NOT_IMPLEMENTED);              }             catch
>  (SocialSpiException $e) {             $response = new
> ResponseItem($e->getCode(), $e->getMessage());             return $response;
>             }
>                 perhaps just
>                  $response = new ResponseItem(501, The service " .
> $requestItem->getService() . " is not implemented");                 return
> $response;
>        No need to throw an exception.
>
>
>
>
>
>
> _________________________________________________________________
> http://clk.atdmt.com/UKM/go/195013117/direct/01/
>