Location via proxy:
[ UP ]
[Report a bug]
[Manage cookies]
No cookies
No scripts
No ads
No referrer
Show this form
Home
C# / C Sharp
2D Graphics
Class Interface
Collections Data Structure
Components
Data Types
Database ADO.net
Date Time
Design Patterns
Development Class
Event
File Stream
Generics
GUI Windows Form
Internationalization I18N
Language Basics
LINQ
Network
Office
Reflection
Regular Expressions
Security
Services Event
Thread
Web Services
Windows
Windows Presentation Foundation
XML
XML LINQ
Exception Try Catch « Language Basics « C# / C Sharp
C# / C Sharp
Language Basics
Exception Try Catch
1.
Catch Error
2.
illustrates an unhandled exception
3.
illustrates how to handle a specific exception
4.
illustrates multiple catch blocks
5.
illustrates a nested try/catch block
6.
illustrates exception propagation with methods
7.
Catch Divide By Zero Exception
8.
Demonstrates stacking catch blocks to provide alternate code for more than one exception type
9.
Catches an exception that was thrown in a component
10.
Throw a format exception purposely to demonstrate catching a FormatException
11.
Demonstrates using if statements to sort out an IOException
12.
Several catch branches
13.
Demonstrate exception handling
14.
An exception can be generated by one method and caught by another
15.
Exception Type Mismatch
16.
Handle error gracefully and continue
17.
Use multiple catch statements
18.
Use the 'catch all' catch statement
19.
Use a nested try block
20.
Catch different exceptions
21.
Passing Exceptions on to the Caller: Caller Confuse
22.
Passing Exceptions on to the Caller: Caller Inform
23.
Exception Handling:Trying and Catching