c# - Is this possible to retrieve the object which cause an InvalidOperationException -
i have piece of code :
try{ // other instructions customer.create(act.id, act.accountid.value, act.accountname, act.referer); // other instructions } catch (exception ex) { logging.trace(ex); } in cases, accountid null, , getting value threw invalidoperationexception.
my question : in catch section, possible retrieve fact accountid null ?
using stacktrace or, that. search on google nothing appears. as possible, not want modify structure of code before, using if( account != null) etc...
thanks in advance kind of help.
Comments
Post a Comment