[gdal-dev] RFC 37: User context data in CPLErrorHandler callbacks

Ari Jolma ari.jolma at gmail.com
Tue Oct 25 14:32:50 EDT 2011


On 10/25/2011 09:07 PM, Howard Butler wrote:
>> You also did not address if/how this will be exposed in SWIG languages.
> This RFC is not going to address integration of this capability into the usage of error handlers in the SWIG languages, but bindings maintainers are encouraged to consider how this capability could improve error handling within those languages and implement code to take advantage of it accordingly.

That sounds very correct, but could you elaborate a bit how this 
capability could be exploited?

It is a problem when the user initiates a complex process in a GUI and 
somewhere along the way GDAL is called ending in an error. The error 
report is probably not very useful to the user. Could this facility be 
somehow used to add to the error message ending up in the message box 
the user sees?

Right now the Swig interface to the error handler facility is rather 
minimal.

Regards,

Ari

>
> Howard _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev



More information about the gdal-dev mailing list