Exceptions and Class Libraries

  • 6 Videos | 46m
  • Earns a Badge
Exceptions are errors that occur while your application is running. They may be caused by program logic, unexpected user input, or a host of other reasons. If left unhandled, your applications may behave in unexpected ways. In this course, you'll learn how to add error handling code to an application and how to use try-catch and try-catch finally blocks. You'll also learn how to catch exceptions thrown by the .NET framework, throw exceptions from your own methods, and define custom exception types. In .NET, you can share code across multiple projects by placing the code inside a class library. A class library is a collection of classes and other types compiled into a dynamic link library. In this course, you'll also learn how to create a DLL and call code in that DLL from your executable. You'll learn about assemblies and how a .NET DLL differs from a Windows DLL. You'll examine how to create and work with class libraries. This course was originally created by Global Knowledge (GK). 

WHAT YOU WILL LEARN

  • describe exceptions and how they are managed in C#
    recognize how the try-catch block is used to catch exceptions
    recognize how try-catch-finally differs from try-catch and its purpose
  • recognize how to define custom exceptions, exception design guidelines, and how to use the Exception snippet
    recognize how to link executables and DLLs
    recognize how to create and work with a class library

IN THIS COURSE

  • Playable
    1. 
    Handling Exceptions
    7m 32s
    UP NEXT
  • Playable
    2. 
    Using try-catch
    9m 49s
  • Locked
    3. 
    Using try-catch-finally
    5m 37s
  • Locked
    4. 
    Defining Exceptions
    7m 20s
  • Locked
    5. 
    Linking Executables and DLLs
    5m 55s
  • Locked
    6. 
    Class Libraries
    9m 48s

EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE

Skillsoft is providing you the opportunity to earn a digital badge upon successful completion of this course, which can be shared on any social network or business platform

Digital badges are yours to keep, forever.

YOU MIGHT ALSO LIKE