Table of Contents

Class MediatorErrorCodes

Namespace
SimpleMediator
Assembly
SimpleMediator.dll

Canonical error codes emitted by the mediator pipeline.

public static class MediatorErrorCodes
Inheritance
MediatorErrorCodes
Inherited Members

Remarks

Centralizing codes reduces drift between behaviors, handlers and documentation.

Fields

BehaviorCancelled

Pipeline behavior canceled execution.

public const string BehaviorCancelled = "mediator.behavior.cancelled"

Field Value

string

BehaviorException

Pipeline behavior threw an exception.

public const string BehaviorException = "mediator.behavior.exception"

Field Value

string

BehaviorNullNext

Pipeline behavior received a null next delegate.

public const string BehaviorNullNext = "mediator.behavior.null_next"

Field Value

string

BehaviorNullRequest

Pipeline behavior received a null request.

public const string BehaviorNullRequest = "mediator.behavior.null_request"

Field Value

string

HandlerCancelled

Request handler canceled execution.

public const string HandlerCancelled = "mediator.handler.cancelled"

Field Value

string

HandlerException

Request handler threw an exception.

public const string HandlerException = "mediator.handler.exception"

Field Value

string

HandlerInvalidResult

Request handler returned an invalid result.

public const string HandlerInvalidResult = "mediator.handler.invalid_result"

Field Value

string

HandlerMissing

No request handler registered.

public const string HandlerMissing = "mediator.handler.missing"

Field Value

string

NotificationCancelled

Notification processing canceled.

public const string NotificationCancelled = "mediator.notification.cancelled"

Field Value

string

NotificationException

Notification processing threw an exception.

public const string NotificationException = "mediator.notification.exception"

Field Value

string

NotificationInvalidReturn

Notification handler returned an invalid task or result.

public const string NotificationInvalidReturn = "mediator.notification.invalid_return"

Field Value

string

NotificationInvokeException

Notification handler threw an exception.

public const string NotificationInvokeException = "mediator.notification.invoke_exception"

Field Value

string

NotificationMissingHandle

No notification handler registered.

public const string NotificationMissingHandle = "mediator.notification.missing_handle"

Field Value

string

NotificationMultipleFailures

Multiple notification handlers failed during parallel dispatch.

public const string NotificationMultipleFailures = "mediator.notification.multiple_failures"

Field Value

string

NotificationNull

Error when a notification instance is null.

public const string NotificationNull = "mediator.notification.null"

Field Value

string

PipelineException

Unexpected failure while executing the pipeline.

public const string PipelineException = "mediator.pipeline.exception"

Field Value

string

PostProcessorCancelled

Request post-processor canceled execution.

public const string PostProcessorCancelled = "mediator.postprocessor.cancelled"

Field Value

string

PostProcessorException

Request post-processor threw an exception.

public const string PostProcessorException = "mediator.postprocessor.exception"

Field Value

string

PreProcessorCancelled

Request pre-processor canceled execution.

public const string PreProcessorCancelled = "mediator.preprocessor.cancelled"

Field Value

string

PreProcessorException

Request pre-processor threw an exception.

public const string PreProcessorException = "mediator.preprocessor.exception"

Field Value

string

RequestCancelled

Request canceled before completion.

public const string RequestCancelled = "mediator.request.cancelled"

Field Value

string

RequestHandlerMissing

No request handler registered.

public const string RequestHandlerMissing = "mediator.request.handler_missing"

Field Value

string

RequestHandlerTypeMismatch

Request handler type mismatch.

public const string RequestHandlerTypeMismatch = "mediator.request.handler_type_mismatch"

Field Value

string

RequestNull

Error when a request instance is null.

public const string RequestNull = "mediator.request.null"

Field Value

string

Timeout

Operation timed out.

public const string Timeout = "mediator.timeout"

Field Value

string