Show / Hide Table of Contents

    Class IgnoredExceptions

    Сontains a mechanism for notifying about the occurrence of ignored exceptions, as well as a mechanism for their collection.

    Содержит механизм уведомления о возникновении игнорируемых исключений, а так же механизм их сбора.

    Inheritance
    Object
    IgnoredExceptions
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: Platform.Exceptions
    Assembly: Platform.Exceptions.dll
    Syntax
    public static class IgnoredExceptions

    Properties

    | Improve this Doc View Source

    CollectedExceptions

    Gets an immutable collection with all collected exceptions that were ignored.

    Возвращает неизменяемую коллекцию со всеми собранными исключениями которые были проигнорированы.

    Declaration
    public static IReadOnlyCollection<Exception> CollectedExceptions { get; }
    Property Value
    Type Description
    IReadOnlyCollection<Exception>
    | Improve this Doc View Source

    CollectExceptions

    Gets or sets a value that determines whether to collect ignored exceptions into CollectedExceptions.

    Возвращает или устанавливает значение, определяющие нужно ли собирать игнорируемые исключения в CollectedExceptions.

    Declaration
    public static bool CollectExceptions { get; set; }
    Property Value
    Type Description
    Boolean

    Methods

    | Improve this Doc View Source

    RaiseExceptionIgnoredEvent(Exception)

    Raises an exception ignored event.

    Генерирует событие игнорирования исключения.

    Declaration
    public static void RaiseExceptionIgnoredEvent(Exception exception)
    Parameters
    Type Name Description
    Exception exception

    The ignored exception.

    Игнорируемое исключение.

    Remarks

    It is recommended to call this method in cases where you have a catch block, but you do not do anything with exception in it.

    Рекомендуется вызывать этот метод в тех случаях, когда у вас есть catch блок, но вы ничего не делаете в нём с исключением.

    Events

    | Improve this Doc View Source

    ExceptionIgnored

    An event that is raised every time an exception has been ignored.

    Событие, которое генерируется каждый раз, когда исключение было проигнорировано.

    Declaration
    public static event EventHandler<Exception> ExceptionIgnored
    Event Type
    Type Description
    EventHandler<Exception>
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX