Table of Contents

Class MediatorErrors

Namespace
SimpleMediator
Assembly
SimpleMediator.dll

Factory for the standard errors produced by SimpleMediator.

public static class MediatorErrors
Inheritance
MediatorErrors
Inherited Members

Properties

Unknown

Unexpected infrastructure error.

public static MediatorError Unknown { get; }

Property Value

MediatorError

Methods

Create(string, string, Exception?, object?)

Creates an error with explicit code and message.

public static MediatorError Create(string code, string message, Exception? exception = null, object? details = null)

Parameters

code string
message string
exception Exception
details object

Returns

MediatorError

FromException(string, Exception, string?, object?)

Wraps an exception inside a typed error.

public static MediatorError FromException(string code, Exception exception, string? message = null, object? details = null)

Parameters

code string
exception Exception
message string
details object

Returns

MediatorError