Join Gerry O'Brien for an in-depth discussion in this video Working with exception classes in the .NET Framework, part of Learning C# (2014).
Structured exception handling within the .NET framework relies on exception classes…that pertain to the different aspects of the application you're working with.…Ultimately, all of our exceptions that we handle…within the .NET framework derive from the system.exception class.…And the system.exception class is the basic member variables and methods that…we will use to work with all of our exceptions in our code.…As an example, in the object browser I have system.exception open, and…we can see that it represents errors that occur during application execution.…We have very specific properties such as data,…which we'll get a collection of key value pairs…providing additional user define information, so if you're…throwing your own exception, you can populate that information.…There's a potential to use a help link, where there may be a…help file in your application associated with…that type of exception that took place.…Another common one that you would use is the inner exception, which…gets an instance of the systematic exception that caused the current one.…
- Installing C#
- Working with loops
- Controlling program flow
- Using variables
- Building functions
- Creating and instantiating classes
- Catching errors
- Managing resources with the garbage collector
- Building collections
Skill Level Beginner
1. Introducing C#
2. C# Language Elements
3. Object-Oriented Programming in C#
4. Structured Exception Handling
5. Resource Management in C#
6. Extensible Types in C#
7. Windows Apps in C#
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.