// Copyright (c) The Geekeey Authors // SPDX-License-Identifier: EUPL-1.2 namespace Geekeey.Request.Result; /// /// An error which is constructed from an exception. /// public sealed class ExceptionError : Error { /// /// An error which is constructed from an exception. /// /// The exception in the error. public ExceptionError(Exception exception) { Exception = exception; } /// /// The exception in the error. /// public Exception Exception { get; } /// /// The exception in the error. /// public override string Message => Exception.Message; }