We don't have error handling for this on the library level. But what you could do is register for the layer's loadend event and check for layer.features.length. You could notify the user when the number of features is zero.
Andreas. On Oct 26, 2011, at 18:20 , Tito, Joseph wrote: > Is it possible to recover error messages in the following scenarios: > > 1) A vector layer is created from a KML file in which the KML file is > corrupted. > 2) A GeoRSS layer is created from a GeoRSS file in which the file is > corrupted. > > I’m trying to report errors to my users if they supply a file that is > corrupted. > > Joe Tito > > _______________________________________________ > Users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. _______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
