IT SOLUTIONS
Your full service technology partner! 
-Collapse +Expand
KB
   ► KB ► > Exception Trapping Posts  Print This     

Exception Trapping Posts

"Exception Trapping" Knowledge Base Posts

More...
  KB Article    

Mike Prestwood
1. Delphi Prism Exception Trapping (try..except, try..finally)

Use a try..except..end block to trap and process errors.

Posted to KB Topic: Language Details
12 years ago

Code
Nothing New Since Your Last Visit
11993
Hits

Delphi Prism

Mike Prestwood
2. C# Exception Trapping (try...catch...finally)

C# uses a try...catch...finally statement to trap for errors.

try {}
catch {}
finally {}
Posted to KB Topic: Language Basics
13 years ago, and updated 12 years ago
(1 Comments , last by Paul.L4 )

Code
Nothing New Since Your Last Visit
9417
Hits

C# (Visual C# & VS.Net)

Mike Prestwood
3. VB.Net Exception Trapping (Try...Catch...Finally)

A common usage of exception handling is to obtain and use resources in a "try-it" block, deal with any exceptions in an "exceptions" block, and release the resources in some kind of "final" block which executes whether or not any exceptions are trapped.

Posted to KB Topic: Language Basics
13 years ago, and updated 13 years ago
(2 Comments , last by gratteremo.X )

Code
Nothing New Since Your Last Visit  
12018
Hits

VB.Net Language

Mike Prestwood
4. ObjectPAL Exception Trapping (try...onFail)

ObjectPAL has a try...onFail statement but does not have a finally-type component. However, the code afer endTry will execute.

try
onFail
endTry
Posted to KB Topic: OPAL: Language Details
13 years ago, and updated 13 years ago
(1 Comments , last by Elisa.S )

Code
Nothing New Since Your Last Visit
7410
Hits

Corel Paradox / ObjectPAL Coding

Mike Prestwood
5. Delphi Exception Trapping (try..except, try..finally)

Delphi also offers a try...finally where code will execute in the finally section no matter what. It's common to put a try...except inside a try...finally:

Posted to KB Topic: Delphi for Win32
13 years ago, and updated 13 years ago

Code
Nothing New Since Your Last Visit
9956
Hits

Pascal and Delphi Coding
More...


Icon Legend:
Since your last logged visit:
- New to you or updated since your last visit (sign in now to activate).
- NOT new to you since your last visit (sign in now to activate).
Go ahead!   Use Us! Call: 916-726-5675  Or visit our new sales site: 
www.prestwood.com


©1995-2021 Prestwood IT Solutions.   [Security & Privacy]