I already asked this question in Stack Overflow. I don't want to spam by asking again here but I think the question fits better in GIS SE. I am sorry for the replication. Feel free to delete one of the two questions.
I am working with OpenLayers 2. I am using the events "loadstart" and "loadend" from here.
When I use OpenLayers.Layers.WMS, i want to have some kind of callback when there is a loading error. For example, when I enter an incorrect SLD filter, I want to have some feedback about the layer not being loaded correctly. Unfortunately, "loadend" doesn't provide this kind of error detection.
I already found this question where someone else has the same problem.
Is there even an event that signals this kind of error?
Is there something like a "layerfail" or "layererror" event?
How could I implement this?