473,320 Members | 1,853 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Error handling

Hello,

In all my VB.NET 2005 routines, I already inserted a Try...Catch routine in
order to handle my errors.
Is it possible - despite the presence of the Try...Catch routine, to let the
program break on every error thus giving me the opportunity to adapt my
code?

Many thanks and greetings,

Michel

Mar 30 '07 #1
4 1338
Dear Michel,
It is difficult to handle errors without proper Exception handling
becuase when ever any error occur it provide you error window.
This is good practice to use Try...Catch in evey function/event.

Mar 30 '07 #2
Goto menu Debug Exceptions. Then check all the checkboxes under the
colum 'Thrown' so that program breaks even if you have handled the
error in code.

Regards,

Sachin Palewar
(Certified Scrum Master)

Palewar Techno Solutions
(Mobile Solutions for Your Business)
www.palewar.com

On Mar 30, 10:49 pm, "Michel Vanderbeke" <michel.vanderb...@skynet.be>
wrote:
Hello,

In all my VB.NET 2005 routines, I already inserted a Try...Catch routine in
order to handle my errors.
Is it possible - despite the presence of the Try...Catch routine, to let the
program break on every error thus giving me the opportunity to adapt my
code?

Many thanks and greetings,

Michel

Mar 30 '07 #3
On Mar 30, 2:13 pm, mnadeem.abb...@gmail.com wrote:
Dear Michel,
It is difficult to handle errors without proper Exception handling
becuase when ever any error occur it provide you error window.
This is good practice to use Try...Catch in evey function/event.
I disagree, I prefer to catch the exceptions that have a good chance
of occurring, and letting a global exception handler handle the rest.
IMO it makes my code much more readable than having every method
wrapped in a try catch block.

Thanks,

Seth Rowe

Mar 30 '07 #4
On Mar 30, 1:49 pm, "Michel Vanderbeke" <michel.vanderb...@skynet.be>
wrote:
Hello,

In all my VB.NET 2005 routines, I already inserted a Try...Catch routine in
order to handle my errors.
Is it possible - despite the presence of the Try...Catch routine, to let the
program break on every error thus giving me the opportunity to adapt my
code?

Many thanks and greetings,

Michel
Go to the Debug menu and click on Exceptions. Then you can set the ide
to break on an exception when it's thrown as well as unhandled.

Thanks,

Seth Rowe

Mar 30 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: WSeeger | last post by:
When creating a new class, is it encouraged to always include error handling routines within your LET and GET procedures? It's seems that most text books never seem to include much about error...
12
by: Christian Christmann | last post by:
Hi, assert and error handling can be used for similar purposes. When should one use assert instead of try/catch and in which cases the error handling is preferable? I've read somewhere that...
6
by: Squirrel | last post by:
I have a command button on a subform to delete a record. The only statement in the subroutine is: DoCmd.RunCommand acCmdDeleteRecord The subform's recordsource is "select * from tblVisit order...
13
by: Thelma Lubkin | last post by:
I use code extensively; I probably overuse it. But I've been using error trapping very sparingly, and now I've been trapped by that. A form that works for me on the system I'm using, apparently...
21
by: Anthony England | last post by:
Everyone knows that global variables get re-set in an mdb when an un-handled error is encountered, but it seems that this also happens when the variable is defined as private at form-level. So...
3
by: Stefan Johansson | last post by:
Hi all I'am moving from Visual Foxpro and have a question regarding "best practice" error handling in vb .net. In VFP I have always used a "central" error handling object in order to have a...
4
by: Al Williams | last post by:
Hi, I have error handling in place throughout my application. I also start the application wrapped in error handling code to catch any unexpected exceptions (i.e. exceptions that occur where I...
10
by: Anthony England | last post by:
(sorry for the likely repost, but it is still not showing on my news server and after that much typing, I don't want to lose it) I am considering general error handling routines and have...
0
by: Lysander | last post by:
Thought I would give something back with a few articles. This article is a bit of code to add error handling. When I have time, I want to write articles on multilingual databases, and Access...
9
by: MrDeej | last post by:
Hello guys! We have an SQL server which sometimes makes timeouts and connection errors. And we have an function witch writes and updates data in 2 tables on this server. When the SQL server error...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.