Wrox Programmer Forums
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 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 August 18th, 2004, 02:57 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 245
Thanks: 0
Thanked 0 Times in 0 Posts
Default Exception Question

Hello
I am pretty new to .NET programming. Everything I learned was from a few books.
I know what Exceptions are for but I am not sure when to use them and when NOT to use them.

Can someone explain to me as concisely as possible. A book can only explain so much.

 
Old August 18th, 2004, 03:14 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 331
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to qazi_nomi
Default

Dear Exeption are the errors which are generated at run time. e.g a number divided by 0 generates an exeption . And some language support to handle these exeptions.It is called eception handling. And with this we can avoid the un natural temination of the program



Numan
--------------------------------------------------
Love is the most precious thing of this world. So find and grab it!
 
Old August 18th, 2004, 05:42 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 245
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I know what it is. But I need a better explanation.

Can someone tell what common mistakes of using Exceptions. Explain to me when not to use it.



 
Old August 18th, 2004, 07:39 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Hey,

Sometimes the app will throw one based on syntax errors. Exceptions are raised when an error occurs within your data. For example, if a user enters bad data, you can throw an exception. You can make your own exceptions by creating a class that inherits from System.Exception.

Just like Err.Raise in VB, except you do THrow New <exception> to do it in .NET. Exceptions that aren't handled with try catch block are then visible in the browser/form.

Hope this helps,

Brian





Similar Threads
Thread Thread Starter Forum Replies Last Post
Security Exception aliusmankhan ASP.NET 2.0 Professional 6 July 21st, 2008 11:21 AM
COM Exception muralidharan.d VS.NET 2002/2003 0 August 7th, 2007 02:49 PM
OleDbPermission Exception FalseParadigm Visual Studio 2005 0 May 15th, 2007 01:46 PM
Exception Ochi C# 1 January 15th, 2006 11:38 PM
SQL Exception pavanp ASP.NET 1.0 and 1.1 Basics 5 July 27th, 2004 02:17 PM





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