dev@jersey.java.net

Re: WebApplicationException alternative suggestion

From: Adam Walczak <ja_at_adamwalczak.info>
Date: Wed, 24 Nov 2010 07:31:19 +0100

2010/11/23 Paul Sandoz <Paul.Sandoz_at_oracle.com>:
> This is a good idea and i think would make, at least initially, most sense
> as a separate module. We could place such a module in the experimental area
> until we are happy with it.

Ok. I'll do that and raport back when I'm done.

> I prefer Alexandru's approach of using an ErrorInfo class for the entity
> rather than a Throwable.

Personally I feel this to be a little limited. A assume the ErrorInfo
class is filled with some generic fields.
What is I have somewhere an exception like:

class CsvImportException extends Exception {

...

public int getLineNumber() {
...
}
}

And I need the line number attribute to do proper user interaction ?

-- 
Adam Walczak
www.adamwalczak.info
+48 604 188 992