add exception handling to WMSDescribeLayer Format
This commit is contained in:
@@ -90,6 +90,12 @@ OpenLayers.Format.WMSDescribeLayer.v1_1 = OpenLayers.Class(
|
||||
}
|
||||
describelayer.push({layerName: layerName, owsType: owsType,
|
||||
owsURL: owsURL, typeName: typeName});
|
||||
} else if (nodeName == 'ServiceException') {
|
||||
// an exception must have occurred, so parse it
|
||||
var parser = new OpenLayers.Format.OGCExceptionReport();
|
||||
return {
|
||||
error: parser.read(data)
|
||||
};
|
||||
}
|
||||
}
|
||||
return describelayer;
|
||||
|
||||
Reference in New Issue
Block a user