On Tue, Mar 15, 2011 at 4:01 PM,  <[email protected]> wrote:
> I took a quick look at
>
> http://inspire.jrc.ec.europa.eu/documents/Network_Services/Technical_Guidance_View_Services_v2.12.pdf
>
> Section 3.2.2
> Internationalization of service exceptions is optional.

Moreover, as I suspected:

"If service exceptions are internationalized
then the error messages (exceptions) are either expressed in the
service’s default language (suppose
that the request is incorrect and the LANGUAGE parameter has not been
interpreted before issuing
the error/exception text) or in the preferred (requested) language in
other cases."

The message is the part that might be internationalized, not the code.
The message comes from one million places from the code, there is no
good way to internationalize it.

I guess you could indeed use the service exception codes (and the
locator) to build a small set of generic
error messages though, and use a generic internal server error for
everything else.
To do this the best way without nasty workarounds we'd indeed need
some core extensions, such as
adding, for example, a error method to the DispatcherCallback allowing
a callback to alter the exception
(actually, wrap it).

Cheers
Andrea


-- 
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:      +39 0584 962313
mob:    +39 333 8128928

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

-------------------------------------------------------

------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to