result/src/Results/Errors/InvalidOperationError.cs
Louis Seubert ca9f290d44
All checks were successful
dotnet publish / package (8.0) (push) Successful in 37s
feat: initial project commit
2024-04-14 17:45:15 +02:00

11 lines
No EOL
382 B
C#

namespace Geekeey.Common.Results;
/// <summary>
/// An error which represents an invalid operation.
/// </summary>
/// <param name="message">An optional message describing the operation and why it is invalid.</param>
public sealed class InvalidOperationError(string? message = null) : Error
{
/// <inheritdoc/>
public override string Message => message ?? "Invalid operation.";
}