Unosquare
    Show / Hide Table of Contents

    Class SelfCheck

    Provides methods to perform self-checks in library or application code.

    Inheritance
    Object
    SelfCheck
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Swan
    Syntax
    public static class SelfCheck

    Methods

    Failure(String, String, Int32)

    Creates and returns an exception telling that an internal self-check has failed.

    The returned exception will be of type InternalErrorException; its Message property will contain the specified message, preceded by an indication of the assembly, source file, and line number of the failed check.

    Declaration
    public static InternalErrorException Failure(string message, string filePath = "", int lineNumber = 0)
    Parameters
    Type Name Description
    String message

    The exception message.

    String filePath

    The path of the source file where this method is called. This parameter is automatically added by the compiler amd should never be provided explicitly.

    Int32 lineNumber

    The line number in source where this method is called. This parameter is automatically added by the compiler amd should never be provided explicitly.

    Returns
    Type Description
    InternalErrorException

    A newly-created instance of InternalErrorException.

    Comments

    Back to top Copyright © 2017-2019 Unosquare