|
static void | RethrowWhenAbsentIn (this Exception exception, IEnumerable< Type > validExceptions) |
|
Definition at line 9 of file ExceptionExtensions.cs.
◆ 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: