Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractProxyMethodBuilder.EmitThrowException Method

Generates code that throws InvalidOperationException.

[Visual Basic]
Protected Shared Sub EmitThrowException( _
   ByVal il As ILGenerator, _
   ByVal exceptionType As Type, _
   ByVal message As String _
)
[C#]
protected static void EmitThrowException(
   ILGenerator il,
   Type exceptionType,
   string message
);

Parameters

il
IL generator to use.
exceptionType
the type of the exception to throw
message
Error message to use.

See Also

AbstractProxyMethodBuilder Class | Spring.Proxy Namespace