c# - Best method to handling exception when using business class in asp.net -
i using 1 asp.net application have business class mediator between database , application. in aspx page code behind handling exception log file every method. in business class have method getting called aspx page.i handling exception in business class method. below page method example calling business methods:
public void mypagemethod { businessclass bc = new businessclass(); bc.getdata(); }
below business class method getting called page:
public string getdata() { string data = string.empty(); try { //some business logic } catch(exception e) { } return data; }
now question here need handle exception business class method also?
Comments
Post a Comment