// Copyright (c) The Geekeey Authors // SPDX-License-Identifier: EUPL-1.2 namespace Geekeey.Extensions.Result; /// /// The exception is thrown when an is attempted to be unwrapped contains only a failure value. /// public sealed class UnwrapException : Exception { /// /// Creates a new . /// public UnwrapException() : base("Cannot unwrap result because it does not have a value.") { } /// /// Creates a new . /// /// An error message. public UnwrapException(string error) : base(error) { } }