|
I'm going to provide exceptions in json format patching:
- WMSExceptionHandler
- WFSExceptionHandler
WFS -------- Example ---------
http://localhost:8080/geoserver/wfs/?service=wfs
&version=1.1.0
&request=DescribeFeatureType
&typeName=topp:group
&outputFormat=text/_javascript_
&format_options=callback%3AgetLayerFeatures_MY
&EXCEPTIONS=text/_javascript_
-------- Result ---------
getLayerFeatures_MY({"ExceptionReport": {
"@version": "1.1.0",
"Exception": {
"@exceptionCode": "noApplicableCode",
"@exceptionLocator": "noLocator",
"ExceptionText": "Could not find type: {http://www.openplans.org/topp}group"
}
}})
WFS -------- Example ---------
http://localhost:8080/geoserver/wfs/?service=wfs
&version=1.1.0
&request=DescribeFeatureType
&typeName=topp:group&outputFormat=text/_javascript_
&format_options=callback%3AgetLayerFeatures_MY
&EXCEPTIONS=application/json
-------- Result ---------
{"ExceptionReport": {
"@version": "1.1.0",
"Exception": {
"@exceptionCode": "noApplicableCode",
"@exceptionLocator": "noLocator",
"ExceptionText": "Could not find type: {http://www.openplans.org/topp}group"
}
}}
WFS -------- Example ---------
http://localhost:8080/geoserver/wfs/?service=wfs
&version=1.1.0
&request=DescribeFeatureType
&typeName=topp:group
&outputFormat=text/_javascript_
-------- Result ---------
<ows:ExceptionReport xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ows="http://www.opengis.net/ows" version="1.0.0"xsi:schemaLocation="http://www.opengis.net/ows http://localhost:8080/geoserver/schemas/ows/1.0.0/owsExceptionReport.xsd">
<ows:Exception exceptionCode="NoApplicableCode">
<ows:ExceptionText>
Could not find type: {http://www.openplans.org/topp}group
</ows:ExceptionText>
</ows:Exception>
</ows:ExceptionReport>
--------------------------
Patch incoming
|