CodeVerge.Net Beta


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

MS SQL 2008 on ASP.NET Hosting



Zone: > NEWSGROUP > Asp.Net Forum > starter_kits_and_source_projects.microsoft_application_blocks Tags:
Item Type: NewsGroup Date Entered: 8/6/2005 4:01:10 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 0 Views: 30 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
1 Items, 1 Pages 1 |< << Go >> >|
StevenSw
Asp.Net User
EAL June 2005 Exception Handling8/6/2005 4:01:10 AM

0/0

I am reading the section titled "Notifying the User" and there is an example such as:

try
{
  // run code
}
catch(Exception ex)
{
  bool rethrow = ExceptionPolicy.HandleException(ex, "Global Policy");
  if (rethrow)
    throw;
}


If I try that I get the following error:

Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

Line 105:					if (rethrow)
Line 106:						//throw new Exception(ex.ToString());
Line 107:						throw;
Line 108:				}

If I do this:
catch(Exception ex)
{
 bool rethrow = ExceptionPolicy.HandleException(ex, "DTS Exception Policy");
 if (rethrow)
  throw new Exception(ex.ToString());
}


Then I get the detailed info from the exception wrote to the screen. My question is in two parts.

First, am I in fact doing this correctly?
Second, what is the best method of providing a user friendly message versus the detailed exception?

Steven M. Swafford
http://www.radicaldevelopment.net
http://www.blog.radicaldevelopment.net/
http://aspalliance.com/author.aspx?uId=1158

Dont forget to click "Mark as Answer" on the post that helped you.
1 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Eddie Rickenbacker: An American Hero in the Twentieth Century Authors: Walter David Lewis, Pages: 668, Published: 2005

Web:
June 2005 EAL Question - .NET Aug 3, 2005 ... June 2005 EAL Question. Get answers to your questions in our . ... My question is am I am going about logging the exception thrown properly? ...
NALDIC - Working for Pupils with English as An Additional Language Schools involved in the EAL programme made more progress in their Key Stage 2 English ... It ran from September 2005 – June 2006 in collaboration with ...
Portfolio of Evidence for meeting the QTS EAL/BME standards All tasks must be completed no later than 25th June 2005. ... years you can choose any area of learning from the ELG with the exception of Communication, ...
R e a l E s t a t e A g e n d a With the notable exception of France, and perhaps Portugal and Greece, .... Consumer confidence (LHS). House prices (%y/y, RHS, adv. 1yr). 01-2005. 2005 ...
The EAL Domain Protein VieA Is a Cyclic Diguanylate ... Received for publication, June 15, 2005 , and in revised form, July 27, 2005. ..... With the exception of cellulose biosynthesis in G. xylinum and A. ...
Titolo documento EAL ESTATE UNDER CONSTRUCTION. Italian Legislative Decree 20 June 2005 no. 122 has provided for a regulation ... It is provided for an exception to ...
K e n t u c k y R e a l E s t a t e exception to this rule would be. when the licensee is involved in. dual agency. ..... Income and Expenses for Fiscal Year Ending June 30, 2005 ...
STATE OF HAWAII TO: Interested Parties FROM: Steven Chang, Chief ... with the exception of ethylbenzene and Total Petroleum Hydrocarbons (TPH). In the case of ... into the May 2005 EAL document to address this concern. ...
Working Paper AED-EAL-2007-6 Applicability of the World Bank ... 2005,. http://www.strategycenter.net/research/pubID.70/pub_detail.asp. Wu, J.R. and Winning, D. ‘Update: China Bankruptcy Law Takes Effect June 1 ...
SQL30082N Security processing failed with reason "15" - ibm ... another smtp problem when sending email to new users, or password recovery... eal june 2005 exception handling · issues rendering my site on firefox v0.9.2 ...




Search This Site:










frames & master pages

asp.net 2.0 treeview control - making certain child nodes invisible based on sitemap xml file?

nested masterpage problem

findcontrol and masterpages

how can i hide the expand/collapse image while set showexpandcollapse to true in treeview

code behind the masterpage don't execute

dynamic menus

first letter of paragraph bigger with intent and different font in css

avoid non selectable items from postback

are masterpages stable?

changing the placement of nodes in treeview

select first menu item inside of master page

tab control to go between different pages

getting a property in previouspage w/ a masterpage

how does a frontend web developer fit in to my asp?

treeview

master page + form tags

access .master file from subfolder?

master pages - events, functions

help : user master page with asp:formparameter , save only blank data to database msaccess

master page refresh problem

right click option in asp.net treeview

anyway of not outputting content page title?

how do i style treeview control?

asp:menu control security

treeview control???

masterpage contentplaceholder creating a table (why?)

dynamically changing asp tree nodes in c# in code (not in the page itself)

masterpage and contentpage with custom control get no event

applying skins and themes

  Privacy | Contact Us
All Times Are GMT