Show / Hide Table of Contents

    Class ExceptionSpecification

    Specifies the exception throwing behavior of a method or instruction.

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

    Fields

    | Improve this Doc 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.

    | Improve this Doc 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

    | Improve this Doc 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
    System.Boolean

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

    Methods

    | Improve this Doc 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
    System.Boolean

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

    • Improve this Doc
    • View Source
    Back to top Generated by DocFX