Презентация Exception Handling in . NET Framework онлайн

На нашем сайте вы можете скачать и просмотреть онлайн доклад-презентацию на тему Exception Handling in . NET Framework абсолютно бесплатно. Урок-презентация на эту тему содержит всего 26 слайдов. Все материалы созданы в программе PowerPoint и имеют формат ppt или же pptx. Материалы и темы для презентаций взяты из открытых источников и загружены их авторами, за качество и достоверность информации в них администрация сайта не отвечает, все права принадлежат их создателям. Если вы нашли то, что искали, отблагодарите авторов - поделитесь ссылкой в социальных сетях, а наш сайт добавьте в закладки.



Оцените!
Оцените презентацию от 1 до 5 баллов!
  • Тип файла:
    ppt / pptx (powerpoint)
  • Всего слайдов:
    26 слайдов
  • Для класса:
    1,2,3,4,5,6,7,8,9,10,11
  • Размер файла:
    487.17 kB
  • Просмотров:
    68
  • Скачиваний:
    0
  • Автор:
    неизвестен



Слайды и текст к этой презентации:

№1 слайд
Structured Exceptions
Содержание слайда: Structured Exceptions Handling in .NET V'yacheslav Koldovskyy SoftServe University 2014

№2 слайд
Contents
Содержание слайда: Contents

№3 слайд
. Introduction to structured
Содержание слайда: 1. Introduction to structured exception handling

№4 слайд
Main task correct operation
Содержание слайда: Main task – correct operation of the application There are possible situations during the application execution when predetermined plan of actions may be changed Developer should provide ways to ensure correct execution despite possible errors

№5 слайд
Obsolete check-based method
Содержание слайда: Obsolete check-based method Obsolete error handling method is based on multiple checks of input data and operation return codes. Drawbacks: difficulties; bloated code; unreliable.

№6 слайд
Structured exception handling
Содержание слайда: Structured exception handling Modern way to handle errors provides using of special mechanism – structured exception handling which is the part of programming language Exception is an event which happens during software execution and changes normal way of code execution Exceptions in .NET Framework are instances of classes inherited from base class Exception. Only instances of this class and inherited classes may participated in structured exception handling.

№7 слайд
. Construct try..catch
Содержание слайда: 2. Construct «try..catch»

№8 слайд
Simplest quot try..catch quot
Содержание слайда: Simplest "try..catch" constuct try { // Code which may result in exception } catch { // Code executed only in case of exception }

№9 слайд
quot try..catch quot
Содержание слайда: "try..catch" construct with specific exception try { // Code which may result in exception } catch (DivideByZeroException) { // Code executed in case of exception }

№10 слайд
Cascade sections of catch try
Содержание слайда: Cascade sections of catch try { // Code which may result in exception catch (DivideByZeroException) { // Code executed in case of exception type DivideByZeroException } catch (Exception) { // Code executed in case of exception type Exception // Means "any exception" }

№11 слайд
quot try..catch quot
Содержание слайда: "try..catch" construct with instance of exception

№12 слайд
. Exception class and
Содержание слайда: 3. «Exception» class and exception hierarchy in.NET Framework

№13 слайд
Exception class Exception is
Содержание слайда: Exception class Exception is a base class for all exceptions исключений Important properties: Message – user-oriented message about error Source – name of an error source (application or object) InnerException – inner exception (if called from other) StackTrace – call stack to the point of exception call TargetSite – method name which raised an exception HelpLink – URL-address to information about exception Data – dictionary with additional information with exception (IDictionary)

№14 слайд
Exception hierarchy in .NET
Содержание слайда: Exception hierarchy in .NET Framework

№15 слайд
. Exception throwing and
Содержание слайда: 4. Exception throwing and re-rising

№16 слайд
Exception throwing
Содержание слайда: Exception throwing

№17 слайд
Exception re-rising
Содержание слайда: Exception re-rising

№18 слайд
. Creating own exceptions
Содержание слайда: 5. Creating own exceptions

№19 слайд
Exception declaration
Содержание слайда: Exception declaration

№20 слайд
MSDN recommendations for
Содержание слайда: MSDN recommendations for exception declarations

№21 слайд
. Construct try..finally
Содержание слайда: 6. Construct «try..finally»

№22 слайд
Using finally try..finally
Содержание слайда: Using finally «try..finally» used when it is required to guarantee execution of some code May be used together with catch

№23 слайд
. Best practices for
Содержание слайда: 7. Best practices for exception handling

№24 слайд
Best practices for exception
Содержание слайда: Best practices for exception handling Do not catch general exceptions (do not use catch without parameters or catch(Exception) ) Create own exceptions based on ApplicationException class but not on SystemException Do not use exceptions for application execution control flow as exception handling is heavy resource usage task. Exceptions should be used to manage errors only Do not mute exceptions which can’t be handled in application context (system errors and failures). Do not raise general exceptions: Exception, SystemException, ApplicationException Do not generate reserved system exceptions: ExecutionEngineException, IndexOutOfRangeException, NullReferenceException, OutOfMemoryException Do not return an exception instance as a method return result instead of using throw. Do not create exceptions used only for debugging purposes. Do define debug-only exceptions use Assert.

№25 слайд
. References to additional
Содержание слайда: 8. References to additional sources MSDN recommendations for creating exceptions: http://msdn.microsoft.com/en-us/library/ms173163.aspx MSDN recommendation for exception generation: http://msdn.microsoft.com/en-us/library/ms182338.aspx Full hierarchy of Microsoft .NET Framework exceptions (code sample in comments): http://stackoverflow.com/questions/2085460/c-sharp-is-there-an-exception-overview

№26 слайд
Contacts
Содержание слайда: Contacts

Скачать все slide презентации Exception Handling in . NET Framework одним архивом: