ThrowException Class
Throws an exception.
Namespace
Statiq.Core
Interfaces
Base Types
Derived Types
ThrowException
SyncConfigModule<Exception>
ConfigModule<Exception>
Module
object
IModule
ThrowExceptionIf

Syntax

public class ThrowException : SyncConfigModule<Exception>, IModule

Constructors

Name Summary
ThrowException(Config<Exception>) Throws the specified exception.
ThrowException(Config<string>) Throws a ExecutionException with the specified message.

Methods

Name Return Value Summary
AfterExecution(IExecutionContext, ExecutionOutputs) void
Called after each module execution.
Inherited from Module
AfterExecutionAsync(IExecutionContext, ExecutionOutputs) Task
Called after each module execution.
Inherited from Module
BeforeExecution(IExecutionContext) void
Called before each module execution.
Inherited from Module
BeforeExecutionAsync(IExecutionContext) Task
Called before each module execution.
Inherited from Module
ExecuteAsync(IExecutionContext) Task<IEnumerable<IDocument>>
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(IDocument, IExecutionContext, Exception) IEnumerable<IDocument>
Finally(IExecutionContext) void
Called after each module execution, even if an exception is thrown during execution.
Inherited from Module
FinallyAsync(IExecutionContext) Task
Called after each module execution, even if an exception is thrown during execution.
Inherited from Module

Extension Methods