Search Results for

    Show / Hide Table of Contents

    Class ExceptionSpecification

    Specifies the exception throwing behavior of a method or instruction.

    Inheritance
    object
    ExceptionSpecification
    NullCheckExceptionSpecification
    ExceptionSpecification.Exact
    ExceptionSpecification.Union
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Flame
    Assembly: Flame.dll
    Syntax
    public abstract class ExceptionSpecification

    Fields

    | Edit this page View Source

    NoThrow

    An exception specification that does not allow for any exceptions to be thrown.

    Declaration
    public static readonly ExceptionSpecification NoThrow
    Field Value
    Type Description
    ExceptionSpecification

    A no-throw exception specification.

    | Edit this page View Source

    ThrowAny

    An exception specification that allows for an exception of any type to be thrown.

    Declaration
    public static readonly ExceptionSpecification ThrowAny
    Field Value
    Type Description
    ExceptionSpecification

    A throw-any exception specification.

    Properties

    | Edit this page View Source

    CanThrowSomething

    Tells if this exception specification allows for any exceptions at all to be thrown.

    Declaration
    public abstract bool CanThrowSomething { get; }
    Property Value
    Type Description
    bool

    true if this exception specification allows for at least one type of exception to be thrown; otherwise, false.

    Methods

    | Edit this page View Source

    CanThrow(IType)

    Tells if this exception specification allows for an exception of a particular type or a derived type to be thrown.

    Declaration
    public abstract bool CanThrow(IType exceptionType)
    Parameters
    Type Name Description
    IType exceptionType

    The type of exception to examine.

    Returns
    Type Description
    bool

    true if an exception of type exceptionType or a derived type can be thrown; otherwise, false.

    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX