Hi Patrick,

Thanks for pointing to this. I have just completed the implementation to
throw exceptions are expected. Checked in SVN trunk.

Regarding the "A recoverable error was detected (1001), attempting again in
1000 ms." messages, there are normal and correspond to the automatic retry
strategy activated by default on ClientResource. It can be customized via
the "retryAttempts" and "retryDelay" properties.

Best regards,
Jerome Louvel
--
Restlet ~ Founder and Lead developer ~ http://www.restlet.org
Noelios Technologies ~ Co-founder ~ http://www.noelios.com



-----Message d'origine-----
De : Patrick Logan [mailto:patrickdlo...@gmail.com] 
Envoyé : mercredi 30 septembre 2009 21:38
À : discuss@restlet.tigris.org
Objet : 2.0m5 ClientResource.get() returns null

The docs for ClientResource.get() indicates a ResourceException will be
thrown if the status is not a success. Given a ClientResource on a URL for a
bad domain, e.g. the misspelled "http://www.estlet.org"; results in null
rather than an exception.

The log includes messages like...

INFO: A recoverable error was detected (1001), attempting again in 1000 ms.

Is this expected, and the docs are misleading? Or should the result actually
be a ResourceException?

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=24022
53

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2406330

Reply via email to