Wrox Programmer Forums
BOOK: ASP.NET Website Programming Problem-Design-Solution
This is the forum to discuss the Wrox book ASP.NET Website Programming: Problem - Design - Solution, Visual Basic .NET Edition by Marco Bellinaso, Kevin Hoffman; ISBN: 9780764543869
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET Website Programming Problem-Design-Solution section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old April 13th, 2004, 12:23 PM
Authorized User
Join Date: Apr 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default ApplicationException vs. Exception

In the book the custom exception class AppException inherits from System.ApplicationException. The downloaded code, however, inherits from Exception.

Yes, I am new to .Net and don't understand the difference. Does it matter which I use? The downloaded code built and ran, but I am slowly constructing a new version by following the book.

public class AppException: System.ApplicationException
public class AppException: System.Exception

Old April 13th, 2004, 09:15 PM
Friend of Wrox
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts

Conventional wisdom used to be that we should always inherit from System.ApplicationException for our own custom exceptions. However, it isn't required, and there's been some talk at Redmond lately about a different point of view - some people prefer inheriting from System.Exception. Read about the controversy here:

Similar Threads
Thread Thread Starter Forum Replies Last Post
COM Exception muralidharan.d VS.NET 2002/2003 0 August 7th, 2007 02:49 PM
Exception Ochi C# 1 January 15th, 2006 11:38 PM
Security exception akibaMaila VB.NET 2002/2003 Basics 3 June 30th, 2005 01:29 PM
Security Exception skyler ASP.NET 1.0 and 1.1 Professional 0 June 24th, 2005 12:47 AM
Inherit Exception or ApplicationException organicglenn BOOK: ASP.NET Website Programming Problem-Design-Solution 3 March 27th, 2004 10:42 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.