-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: Sanju
Message 1 in Discussion
HI, I am using ObjectDataSource Control to call my Businesss Layer Method,
Inside the Business layer Method I am throwing Custom Exception, I want to
catch this Exception in UI Layer, can any one suggest me how to solve this
issue UI Method
try
{
ObjectDataSource1.SelectMethod = "GetAllRoles";
ObjectDataSource1.TypeName =
"Shell.BizTalk.Services.BizDashboard.BusinessLayer.RoleBL";
GridView1.DataSourceID = "ObjectDataSource1";
GridView1.DataBind();
}
catch (BizDashboardException objBizDashboardException)
{
BizDashboardException.publish(objBizDashboardException);
}
catch (Exception ex) // It is always catch here
{
BizDashboardException obj = new BizDashboardException("BSC-001", ex,
ex.Message, "RoleBL-GetAllRoles", Severity.Error);
BizDashboardException.publish(obj);
}
Business Layer Method
try
{
objRoleData = RoleDL.GetAllRoles(); // Assume Error is Throwing in this line
}
catch (Exception objException)
{
throw new BizDashboardException("BSC-001", objException,
objException.Message, "RoleBL- GetAllRoles", Severity.Warning); // Want to
catch this exception in UI Layer
}
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you
received this message by mistake, please click the "Remove" link below. On the
pre-addressed e-mail message that opens, simply click "Send". Your e-mail
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]