Exception handling
The publishing framework web methods will throw the exception in case of any errors which should be handled by the implementation code.
Example
BizRightsPublishingFramework.PublishingWebServices objMyImplementation = new
BizRightsPublishingFramework.PublishingWebServices();
BizRightsPublishingFramework.IBizObject objSetRule = BizRightsPublishingFramework.IBizObject();
objSetRule.Name = “Purchase Order Approval versus Create Maintain Material Master Records”;
objSetRule.Type = “Transaction Conflicts”;
…..
int intRuleID;
try
{
Boolean boolSetStatus = objMyImplementation.SetBizRightsObject(objAuthInfo,
BizRightsPublishingFramework.Action.Add, objSetRule, intRuleID);
}
Catch (Exception objEx)
{
Response.Write(objEx.ToString());