From: Thomas G. (JIRA) <tr...@fi...> - 2007-09-20 13:29:29
|
Error code management --------------------- Key: DNET-117 URL: http://tracker.firebirdsql.org/browse/DNET-117 Project: .NET Data provider Issue Type: Improvement Components: ADO.NET Provider Reporter: Thomas Gaboriau Assignee: Carlos Guzman Alvarez Priority: Minor The ErrorCode property of FbException is not override. So it returns HRESULT E_FAIL ( 0x80004005 ) like it specifies in the documentation of ExternalException. I think it could be good to override ErrorCode like this : public override int ErrorCode { get { if ( ( InnerException != null ) && ( InnerException is IscException ) ) return ( (IscException) InnerException ).ErrorCode; return base.ErrorCode; } } -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://tracker.firebirdsql.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |