<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16414" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=875373519-05032007><FONT face=Arial size=2>Would it be
appropriate or possible to insert a GDAL-specific exception class into the
SWIG wrapper?</FONT></SPAN></DIV>
<DIV><SPAN class=875373519-05032007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=875373519-05032007><FONT face=Arial size=2>This exception would
fetch the extended error information from GDAL and automatically include this
information in the exception message.</FONT></SPAN></DIV>
<DIV><SPAN class=875373519-05032007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=875373519-05032007><FONT face=Arial size=2>I did this in the
old hand-rolled GDAL/OGR wrapper. Other than the many constructors, it only
needs to override the Message property.</FONT></SPAN></DIV>
<DIV><SPAN class=875373519-05032007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=875373519-05032007> </DIV>
<DIV><FONT size=2><FONT face=Verdana><FONT color=#808080>///</FONT><FONT
color=#008000> </FONT><FONT
color=#808080><summary></DIV></FONT></FONT></FONT>
<DIV><FONT size=2><FONT face=Verdana><FONT color=#808080>///</FONT><FONT
color=#008000> Gets the exception message. Includes the GDAL extended error
message if available.</DIV></FONT></FONT></FONT>
<DIV><FONT size=2><FONT face=Verdana><FONT color=#808080>///</FONT><FONT
color=#008000> </FONT><FONT
color=#808080></summary></DIV></FONT></FONT></FONT>
<DIV><FONT face=Verdana size=2>public override string Message</FONT></DIV>
<DIV><FONT face=Verdana size=2>{</FONT></DIV>
<DIV><FONT color=#0000ff><FONT size=2><FONT face=Verdana><SPAN
class=875373519-05032007><FONT color=#000000>
</FONT></SPAN>get</FONT></FONT></DIV></FONT>
<DIV><FONT size=2><FONT face=Verdana><SPAN
class=875373519-05032007> </SPAN>{</FONT></FONT></DIV>
<DIV><FONT size=2><FONT face=Verdana><FONT color=#0000ff><SPAN
class=875373519-05032007> </SPAN><SPAN
class=875373519-05032007> </SPAN>return</FONT> <FONT
color=#0000ff>base</FONT>.Message + <FONT color=#a31515>"\n"</FONT> + <FONT
color=#2b91af size=2>gdal</FONT><FONT
size=2>.GetLastErrorMsg()</FONT>;</FONT></FONT></DIV>
<DIV><FONT size=2><FONT face=Verdana><SPAN
class=875373519-05032007> </SPAN>}</FONT></FONT></DIV>
<DIV><FONT face=Verdana size=2>}</FONT></DIV>
<DIV><FONT face=Arial></SPAN></FONT> </DIV>
<DIV><SPAN class=875373519-05032007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=875373519-05032007><FONT face=Arial
size=2>Richard</FONT></SPAN></DIV>
<DIV><SPAN class=875373519-05032007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=875373519-05032007><FONT face=Arial
size=2></FONT></SPAN> </DIV></BODY></HTML>