Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

AppTheory specializes in solutions based on the DotNetNuke platform and has 2 employees on the DotNetNuke Core Team.
  Ads  
Engage Software - Training Partner for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
Verndale
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Error handling (can I use the one of DNN?)
Previous Previous
 
Next Next
New Post 3/21/2006 7:55 AM
User is offline christian aujesky
2 posts
10th Ranked


Error handling (can I use the one of DNN?) 

Hi,

I write a module and want to "save" errors to an errorhandler. After response of the function I want to have a look on the error and decide what to do.

E.G.:

module.ascx.vb   
          returnvalue = moduleController.Function1(...)

moduleController.Function1: 
          returnvalue =DataProvider.Function1(...)

DataProvider.Function1: 
            mustoverride function1 .....

sqlDataProvider.Function1  ' something like
   try
      returnvalue= sqlHelper.execute........
   catch ex as exception
         returnvalue= -1
          '<---- Errorhandling here, something like 
          '<----     LastExec = ex
          '<----     Dim Object as new ErrorEvent(ex)
          '<----     RaiseEvent Onerror (me, object)

  end try
Return=returnvalue

Now if in sqlDataProvider will be an error (e.g. wrong parameter for stored procedure) I want something like the red above written to a public error handler from dnn and after beeing back in module.ascx.vb I get the returnvalue "-1" from the function to notice "something had gone wrong". Now I want to catch the error itself.

The problem is I can't find a possibility in DNN to do this. IF I use something like "ProcessModuleLoadException" DNN itself handles the error. It is of course possible to write for each module an error handler, but I have to write about a dozend modules, so I want something GENERALLY. On the other hand I don't want to change DNN itself because I want to make updates in DNN possible. So has someone found such a error handler existing in DNN I need?

 

 

Thanks a lot

   Christian

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Error handling (can I use the one of DNN?)
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


DNNCovered.com - Your Offshore Dotnetnuke Partner
Dnncovered.com is the only Dotnetnuke offshore outsourcing center specializes in DNN skinning and module development with lowest pricing and quality service. Our staff is dedicated to websites based on DNN and our graphic designers are creative and imaginative well enough to provide customers the complete set of skinning solutions and packages
www.dnncovered.com
PointClick.Net DNN Solutions
DotNetNuke Hosting Platform for Business and personal use.
PointClick.Net Hosted Solutions
Advanced Web Portals by Infoscaler
Infoscaler is a California based company that provides advanced Web Portals, E-commerce Sites, Database Applications and Intranet Solutions on the DotNetNuke and Microsoft.NET platforms.
www.infoscaler.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP