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  |  

DotNetNuke Marketplace
  Ads  
r2i.ntegrated
 


  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:54 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.

 


Easily Build DNN Solutions with XMod
XMod makes it easy to build news articles, house listings, custom feedback forms, product reviews and much more - without programming
www.DNNDev.com
Software Development and Integration with DNN
HNP Solutions focuses on the pragmatic use of technology and process to meet an organization's business objectives. HNP Solutions employs seasoned Enterprise and Solution Architects, Delivery Managers and QA & Business Leads. Our capabilities range from project assessments & recommendations, design & code reviews, to full program implementations. We also work with organizations in need of senior staff augmentation purposes in the areas of Enterprise and Solution architecture.
www.hnpsolutions.com
Alki Homes - Seattle, WA
Exemplary service for your Seattle Real Estate needs. It's what you deserve from your Realtor®!
www.alkihomes.com

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