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
BehaviorException
Pipeline behavior threw an exception.
public const string BehaviorException = "mediator.behavior.exception"
Field Value
BehaviorNullNext
Pipeline behavior received a null next delegate.
public const string BehaviorNullNext = "mediator.behavior.null_next"
Field Value
BehaviorNullRequest
Pipeline behavior received a null request.
public const string BehaviorNullRequest = "mediator.behavior.null_request"
Field Value
HandlerCancelled
Request handler canceled execution.
public const string HandlerCancelled = "mediator.handler.cancelled"
Field Value
HandlerException
Request handler threw an exception.
public const string HandlerException = "mediator.handler.exception"
Field Value
HandlerInvalidResult
Request handler returned an invalid result.
public const string HandlerInvalidResult = "mediator.handler.invalid_result"
Field Value
HandlerMissing
No request handler registered.
public const string HandlerMissing = "mediator.handler.missing"
Field Value
NotificationCancelled
Notification processing canceled.
public const string NotificationCancelled = "mediator.notification.cancelled"
Field Value
NotificationException
Notification processing threw an exception.
public const string NotificationException = "mediator.notification.exception"
Field Value
NotificationInvalidReturn
Notification handler returned an invalid task or result.
public const string NotificationInvalidReturn = "mediator.notification.invalid_return"
Field Value
NotificationInvokeException
Notification handler threw an exception.
public const string NotificationInvokeException = "mediator.notification.invoke_exception"
Field Value
NotificationMissingHandle
No notification handler registered.
public const string NotificationMissingHandle = "mediator.notification.missing_handle"
Field Value
NotificationMultipleFailures
Multiple notification handlers failed during parallel dispatch.
public const string NotificationMultipleFailures = "mediator.notification.multiple_failures"
Field Value
NotificationNull
Error when a notification instance is null.
public const string NotificationNull = "mediator.notification.null"
Field Value
PipelineException
Unexpected failure while executing the pipeline.
public const string PipelineException = "mediator.pipeline.exception"
Field Value
PostProcessorCancelled
Request post-processor canceled execution.
public const string PostProcessorCancelled = "mediator.postprocessor.cancelled"
Field Value
PostProcessorException
Request post-processor threw an exception.
public const string PostProcessorException = "mediator.postprocessor.exception"
Field Value
PreProcessorCancelled
Request pre-processor canceled execution.
public const string PreProcessorCancelled = "mediator.preprocessor.cancelled"
Field Value
PreProcessorException
Request pre-processor threw an exception.
public const string PreProcessorException = "mediator.preprocessor.exception"
Field Value
RequestCancelled
Request canceled before completion.
public const string RequestCancelled = "mediator.request.cancelled"
Field Value
RequestHandlerMissing
No request handler registered.
public const string RequestHandlerMissing = "mediator.request.handler_missing"
Field Value
RequestHandlerTypeMismatch
Request handler type mismatch.
public const string RequestHandlerTypeMismatch = "mediator.request.handler_type_mismatch"
Field Value
RequestNull
Error when a request instance is null.
public const string RequestNull = "mediator.request.null"
Field Value
Timeout
Operation timed out.
public const string Timeout = "mediator.timeout"