Class ExceptionSpecification
Specifies the exception throwing behavior of a method or instruction.
Inheritance
ExceptionSpecification
Inherited Members
Namespace: Flame
Assembly: Flame.dll
Syntax
public abstract class ExceptionSpecification
Fields
| Edit this page View SourceNoThrow
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. |
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 SourceCanThrowSomething
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 |
|
Methods
| Edit this page View SourceCanThrow(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 |
|