BadScript 2
Loading...
Searching...
No Matches
CommandLine.Infrastructure.ExceptionExtensions Class Reference

Static Public Member Functions

static void RethrowWhenAbsentIn (this Exception exception, IEnumerable< Type > validExceptions)
 

Detailed Description

Definition at line 9 of file ExceptionExtensions.cs.

Member Function Documentation

◆ RethrowWhenAbsentIn()

static void CommandLine.Infrastructure.ExceptionExtensions.RethrowWhenAbsentIn ( this Exception  exception,
IEnumerable< Type >  validExceptions 
)
static

Definition at line 11 of file ExceptionExtensions.cs.

12 {
13 if (!validExceptions.Contains(exception.GetType()))
14 {
15 throw exception;
16 }
17 }

The documentation for this class was generated from the following file: