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

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

android - IllegalStateException: Cannot call this method while RecyclerView is computing a layout or scrolling -