CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > starter_kits_and_source_projects.microsoft_application_blocks Tags:
Item Type: NewsGroup Date Entered: 4/26/2007 10:29:33 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 0 Views: 47 Favorited: 0 Favorite
1 Items, 1 Pages 1 |< << Go >> >|
may215
Asp.Net User
Exception Handling Application Block4/26/2007 10:29:33 AM

0

hi..

I have 3-tier application, and i want to use Exception Handling Application Block in this application, and i try to figure it out how to implement it. So, i try to create the exceptions policies and their exception types, and i rely on this process: on dataLayer i catch the exception and throw the original excption, in businessLayer or inherited class i catch the exception and wrap/replace the original exception, on UI layer i notice the client with the exception, and logging it. and i think i have architectural problem with the policies and their exceptions types. So, i have the following questions:

1. Do i have to create policy to each tier?

2. Within each policy, if i want to catch specific error, and handle it differentlly, do i need to add the exceptions type to the policy for the specific error that i want to catch, or i catch it in the code?

I mean: let say i have the policy: "dataLayer policy", and this policy contain two types of exceptions: System.Text.DecoderFallBackException and System.Exception.  now, i want to catch the System.Text.DecoderFallBackException and replace it with friendlly error.

so, i throw it from the dataLayer and catch it in the caller function(on the business layer), so, do i need to write the same catch block with the same policy(the preceding code below), or, do i have put another policy to the business layer, that catch also the same errors, to replace it their and throw new exception to the UI layer?

the catch block:

try
    {
        // TODO: Handle exceptions
    }
    catch (Exception ex)
    {
        bool rethrow = ExceptionPolicy.HandleException(ex, "dataLayer policy");
        if (rethrow)
            throw;
    }
3. if i want to handle the System.Text.DecoderFallBackException do i need to catch it in the code:

catch (System.Text.DecoderFallBackException ex)
    {
        bool rethrow = ExceptionPolicy.HandleException(ex, "dataLayer policy");
        if (rethrow)
            throw;
    }

or, is it enough to have it as exception type in the policy?

thank you....

1 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
.NET: A Complete Development Cycle Authors: Gunther Lenz, Thomas Moeller, Pages: 553, Published: 2003
The Definitive Guide to the Microsoft Enterprise Library Authors: Keenan Newton, Pages: 492, Published: 2007
Coder to Developer: Tools and Strategies for Delivering Your Software Authors: Mike Gunderloy, Pages: 297, Published: 2004
Professional ASP.NET 2.0 Databases Authors: Thiru Thangarathinam, Pages: 504, Published: 2007
Software Engineering and Fault Tolerant Systems Authors: P. Pelliccione, H. Muccini, N. Guelfi, Pages: 281, Published: 2007
Pro ASP.NET 2.0 Website Programming Authors: Damon Armstrong, Pages: 641, Published: 2005
C# 3.0 Cookbook Authors: Jay Hilyard, Stephen Teilhet, Pages: 886, Published: 2007
Comprehensive VB .NET Debugging Authors: Mark Pearce, Pages: 504, Published: 2003
Book of Visual Studio .NET: A Guide for Developers Authors: Robert B. Dunaway, Pages: 369, Published: 2002

Web:
Exception Handling Application Block This section provides an overview of the Enterprise Library Exception Handling Application Block. An application block is reusable and extensible source ...
Exception Handling Application Block in Enterprise Library The new Exception Handling Application Block goes way beyond the old Exception Management Application Block. There are three main concepts to understand in ...
CodeProject: Exception Handling & Logging Application Block ... May 1, 2005 ... This article illustrates how to log your Exception into trace.log file using Enterprise Library of .NET Framework.; Author: santosh poojari; ...
CodeProject: Exception handling using Enterprise application block ... Oct 20, 2008 ... Exception handling using Enterprise application block; Author: Shivprasad koirala; Section: ASP.NET; Chapter: Web Development.
The Exception Handling Application Block The Enterprise Library Exception Handling Application Block helps developers and policy makers to create a consistent strategy for processing exceptions ...
Explore the Enterprise Library Exception Handling Block for .NET 2.0 May 12, 2006 ... The new Exception Handling Application Block that ships with the Enterprise Library 2.0 has undergone huge improvements since the release of ...
Tapping Into the Logging Application Block EL2 consists of six main application blocks: Logging and Instrumentation, Caching, Data Access, Cryptography, Security, and Exception Handling. ...
Microsoft.Net Technology Blog - Vikas Goyal: * Tutorial : Using ... Tutorial : Using Exception Handling Application Block of Enterprise Library. I have just published another tutorial in Enterprise Library series. ...
Exception Handling using Enterprise Library May 12, 2005 ... In the end of the nodes you can see the "Exception Handling Application Block" with the red "cross" sign. Now you need to handling the ...
Enterprise Library 2.0 Logging Application Block Part II - Simple ... Feb 15, 2006 ... Logger is the name of the facade in the Logging Application Block to log messages. I grab the unhandled exception and send it out to be ...

Videos:
Logging Application Block Español Video explicativo de como utilizar el logging app block en español
Stonewalling by Asheville city Council From: Reid Thompson Sent: Monday, March 24, 2008 1:11 PM To: '[email protected]'; '[email protected]'; Council group Subject: Mayor ...
Cisco IPS Manager Express Video Data Sheet Cisco IPS Manager Express is an all-in-one intrusion prevention system management application designed to meet the needs of smaller businesses. For m...
Jan 20 2008 Call California back to its best self Dear Governor Schwarzenegger - I have written to you before about the rift over homosexuals in the Episcopal Church, but now it seems as though the ...
Charlie Rose - Charles Fried, Noah Feldman, David Lat Discussions about the Samuel Alito Senate confirmation hearings with: Segment 1: Former Solicitor General Charles Fried, Harvard Law School Segment...
Project SUN - VideoCast #4 VideoCast #4 is here! This time Project SUN explains you the advantages of SunChat compared to MSN. Also, for the first time, subtitles are provided!...
Distributed continuous quality assurance Google London Test Automation Conference (LTAC) Google Tech Talks September 8th, 2006 Presenter: Adam Porter
Back to Basics AA classes tk 1 The Fourth Step A Guide For Spiritual Advisors INTRODUCTION The Fourth Step is a written inventory which is designed to reveal those twists and p...
Back to Basics AA classes tk 2 Wally P does the AA classes as done in the 40s The Fourth StepA Guide For Spiritual Advisors INTRODUCTION The Fourth Step is a written inventory ...
Using Static Analysis For Software Defect Detection Google TechTalks July 6, 2006 William Pugh ABSTRACT I'll talk about some of my experience in using and expanding static analysis tools for defect d...












ms enterprise application block 2.0

user controls

download enterprise library for .netframework 2.0

daab question

system.nullreferenceexception: object variable or with block variable not set.

newbie - problem finding application blocks dll

re:how to use ole object in microsoft access to store picture

access error sqlhelper

output parameter

daab presentation

use exception management application block in console application

log4net and exception block..

el jan 06: the value can not be null or an empty string.

problem in error logging when using enterprise library 2006 error handling and logging component

a cached shopping cart ??

best way to pass the output parameters.

the located assembly's manifest definition does not match the assembly reference.

max connection pool reached

data access application block in asp.net 2.0?

how to use parameter

data types in sql server 7.0

extend daab function to update/insert/delete dataset using sqlcommandbuilder ?

is following true or false?

problem installing rohservice.exe

data migration from cryptography application block 1.1

microsoft uip - how to transfer data from non uip page to uip page

request: enterprie library 3.0 caching

sqlhelper.executereader

using updater app. block v2.0 for .net outlook add-in

general questions on .net enterprise library 2.0

 
Search This Site:

 
  Privacy | Contact Us
All Times Are GMT