hi gary,
thanks for the thoughts. You're right, AOP would do it, but I also have a
dislike of AOP and would want to use it for this unless I was convinced it was
worth leveraging getLocalizedMessage().
I'm with you on the idea of putting the localization key into the exception, but
I'm not to
A agree that you're going to have to bind something to the Exception in
order to do I18N resolution. And I agree that creating that binding sucks.
If you don't want to ditch getLocalizedMessage you could AOP it. Have
your getLocalizedMessage() method wrapped with some advice that swaps in
th
Adam Hardy wrote:
And of course, I can't pass in parameters when calling
getLocalizedMessage().
ThreadLocal?
-Dale "Pass through the common block" Newfield
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
I came across a conundrum while implementing the S2 exception handling that we
were discussing in another thread.
As the title suggests, I'm interested in Exception.getLocalizedMessage() but
have a seemingly intractable problem with it.
Exception.getLocalizedMessage() returns by default the m
4 matches
Mail list logo