Throws an exception if a condition is
true
.
- Namespace
- Statiq
.Core - Interfaces
- Base Types
-
- object
- Module
- ConfigModule
<Exception> - SyncConfigModule
<Exception> - ThrowException
graph BT
Type-->Base0["ThrowException"]
click Base0 "/api/Statiq.Core/ThrowException"
Base0-->Base1["SyncConfigModule<Exception>"]
Base1-->Base2["ConfigModule<Exception>"]
Base2-->Base3["Module"]
click Base3 "/api/Statiq.Common/Module"
Base3-->Base4["object"]
Type-.->Interface0["IModule"]
click Interface0 "/api/Statiq.Common/IModule"
Type["ThrowExceptionIf"]
class Type type-node
Syntax
public class ThrowExceptionIf : ThrowException, IModule
Constructors
Name | Summary |
---|---|
ThrowExceptionIf |
Throws the specified exception if the condition is true .
|
ThrowExceptionIf |
Throws a ExecutionException with the specified message if the condition is true .
|
ThrowExceptionIf |
Methods
Name | Return Value | Summary |
---|---|---|
AfterExecution |
void |
Called after each module execution.
Inherited from Module
|
AfterExecutionAsync |
Task |
Called after each module execution.
Inherited from Module
|
BeforeExecution |
void |
Called before each module execution.
Inherited from Module
|
BeforeExecutionAsync |
Task |
Called before each module execution.
Inherited from Module
|
ExecuteAsync |
Task |
This should not be called directly, instead call
IExecutionContext.Execute() if you need to execute a module from within another module.
Inherited from Module
|
ExecuteConfig |
IEnumerable |
Inherited from ThrowException
|
Finally |
void |
Called after each module execution, even if an exception is thrown during execution.
Inherited from Module
|
FinallyAsync |
Task |
Called after each module execution, even if an exception is thrown during execution.
Inherited from Module
|