Hi,
our service exception handling work in such a way that build the output
message
from the list of messages in the stack trace below the first
ServiceException found.
p
Sometimes this is not desirable, as it often makes the message long and
ugly,
when the code throwing the exception has all the information it needs to
properly
setup a full OGC service exception response (message, code and locator).
One such case is processes built with WPS in mind, which could do their own
internal (complex) validation of inputs, or just report about hiccups
occurred during
the processing, without the need for the messages to be variously glazed by
exception
wrapping.
Given that we already have a deep tree of exceptions, with some subtrees
handling
OWS 2.0 specific things, creating a custom exception class (like
HTTPErrorCodeException)
would not work.
Instead I would like to introduce a special interface, DirectOGCException,
that could be then
implemented by multiple ServiceException subclasses
The Dispatcher code handling exception would first try to do a full drill
down in the current
stack trace, if one of those is found, then the exception writing code
would receive it
directly, with no extra glaze around it.
Feedback?
Cheers
Andrea
--
==
GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 for more information.
==
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------
------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://www.hpccsystems.com
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel