﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Business Objects and Data Access (How do I?)  » Handling Business Object ArgumentExceptions</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Wed, 09 Sep 2026 22:04:56 GMT</lastBuildDate><ttl>20</ttl><item><title>Handling Business Object ArgumentExceptions</title><link>http://forum.strataframe.net/FindPost21840.aspx</link><description>Hi there,&lt;/P&gt;&lt;P&gt;When the expected field is not returned by a stored procedure the BO raises the ArgumentException error when debugging the code. However, there is no error message when running in the release mode.&lt;/P&gt;&lt;P&gt;I can place&amp;nbsp;try{} catch(System.Argument Exception) {} code in each property of the BO.Designer.cs file that records the error to a log file or displays a message but this will be overwritten the next time the BO is built in the business object mapper.&lt;/P&gt;&lt;P&gt;What is the best way to handle these ArgumentException errors? I need to know if these errors are happening in a release version when the program is being used by the customer.</description><pubDate>Thu, 05 Feb 2009 14:00:21 GMT</pubDate><dc:creator>Rylster</dc:creator></item><item><title>RE: Handling Business Object ArgumentExceptions</title><link>http://forum.strataframe.net/FindPost21843.aspx</link><description>Not entirely sure what is causing the error from your description.  I'd first try to understand what is causing the error. If after that you determine that a try/catch is the way to go, you could use the custom code feature to manually add this in a way that would get reproduced when using the BO mapper. However, you'll have to code the entire property for each field that needs this.  If you could provide some more details (like a call stack) about that is happening, maybe we can determine why you are getting the error.</description><pubDate>Thu, 05 Feb 2009 14:00:21 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item></channel></rss>