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
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
Returns
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)