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) {
throw new ResourceException(Status.SERVER_ERROR_INTERNAL,
"error description");
}
}
}
Maybe your problem comes from your exception logging code. Or maybe you are
using a StatusService to create a custom representation for error and your
implementation have problem.
Olivier
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2649296