good guideline.
Thank you, Thierry Boileau
--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2649387
I can't reproduce your issue. I'm using 2.0 RC4 with Jetty. Here is my resource
:
public class MyRes
extends ServerResource
{
@Get
public String retrieve()
{
try {
throw new Error();
// return Salut;
}
catch (Error e) {
Hi all, I'm finally writing some code after way too long of a hiatus,
and I'm of course getting hung up on some simple things.
With 2.0, what's the simplest way to return an error message?
I thought it was by throwing a ResourceException, like so:
@Post(form)
public void accept(Form form)
3 matches
Mail list logo