M_CommandLine_Infrastructure_ExceptionExtensions_RethrowWhenAbsentIn - adutton/commandline GitHub Wiki
Namespace: CommandLine.Infrastructure
Assembly: CommandLine (in CommandLine.dll) Version: 0.0.0
C#
public static void RethrowWhenAbsentIn(
this Exception exception,
IEnumerable<Type> validExceptions
)VB
<ExtensionAttribute>
Public Shared Sub RethrowWhenAbsentIn (
exception As Exception,
validExceptions As IEnumerable(Of Type)
)C++
public:
[ExtensionAttribute]
static void RethrowWhenAbsentIn(
Exception^ exception,
IEnumerable<Type^>^ validExceptions
)F#
[<ExtensionAttribute>]
static member RethrowWhenAbsentIn :
exception : Exception *
validExceptions : IEnumerable<Type> -> unit
- exception
- Type: System.Exception
- validExceptions
- Type: System.Collections.Generic.IEnumerable(Type)
In Visual Basic and C#, you can call this method as an instance method on any object of type Exception. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
ExceptionExtensions Class
CommandLine.Infrastructure Namespace