dynamics ax 2009 - Catch does not catch -
i create odbcconnection in x++, accessing non-ax-sql-object. works fine, if connection established either via windows-auth or username/password-combination access db has been granted to.
the lack is, catch
-part not called, when
connection = new odbcconnection( loginproperty );
is called , throws error.
try { connection = new odbcconnection( loginproperty ); } grab ( exception::clrerror ) // tried exception::error , grab without brackets { info ('error occured...' ); }
i assume, perhaps exception-type not chosen wisely, right? shouldn't exception::error
or grab without params grab all? msdn says, if connection can not established, exception thrown. shouldn't able grab it?
what's error / misunderstanding?
proper clr , interop exceptions catching described on next link:
http://msdn.microsoft.com/en-us/library/ee677495(v=ax.50).aspx
dynamics-ax-2009
No comments:
Post a Comment