feat: add inital in memory dispatcher
Add a simple in memory dispatcher for scalar requests and stream request.
This commit is contained in:
commit
1218d3617a
145 changed files with 6388 additions and 0 deletions
29
src/request.result/_errors/ExceptionError.cs
Normal file
29
src/request.result/_errors/ExceptionError.cs
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
// Copyright (c) The Geekeey Authors
|
||||
// SPDX-License-Identifier: EUPL-1.2
|
||||
|
||||
namespace Geekeey.Request.Result;
|
||||
|
||||
/// <summary>
|
||||
/// An error which is constructed from an exception.
|
||||
/// </summary>
|
||||
public sealed class ExceptionError : Error
|
||||
{
|
||||
/// <summary>
|
||||
/// An error which is constructed from an exception.
|
||||
/// </summary>
|
||||
/// <param name="exception">The exception in the error.</param>
|
||||
public ExceptionError(Exception exception)
|
||||
{
|
||||
Exception = exception;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The exception in the error.
|
||||
/// </summary>
|
||||
public Exception Exception { get; }
|
||||
|
||||
/// <summary>
|
||||
/// The exception in the error.
|
||||
/// </summary>
|
||||
public override string Message => Exception.Message;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue