: Re: Status class should have a Throwable field
OK, fine: then simply add a constructor that takes a Throwable as
well as a getThrown() method. Status can stay immutable.
- Paul
On Jan 26, 2008, at 1:06 PM, Stephan Koops wrote:
Hello Paul,
if I understood you right, than you
I would like to be able to have code like:
try {
// ...
}
catch ( SomeException e ) {
response.setStatus( CLIENT_ERROR_BAD_REQUEST, e );
}
That is that you can pass a Throwable to setStatus() and that the
Status class have the additional
Hello Paul,
if I understood you right, than you want to add method to the class
Status to save the exception in the status object. But the Status
objects are immutable as all metadata. So this won't work.
best regards
Stephan
Paul J. Lucas schrieb:
I would like to be able to have code
OK, fine: then simply add a constructor that takes a Throwable as
well as a getThrown() method. Status can stay immutable.
- Paul
On Jan 26, 2008, at 1:06 PM, Stephan Koops wrote:
Hello Paul,
if I understood you right, than you want to add method to the class
Status to save the
4 matches
Mail list logo