Files
ersatztv/ErsatzTV.Core/BaseError.cs
T
2021-02-08 21:13:53 -06:00

19 lines
416 B
C#

using LanguageExt;
namespace ErsatzTV.Core
{
public class BaseError : NewType<BaseError, string>
{
public BaseError(string value) : base(value)
{
}
public static implicit operator BaseError(string str) => New(str);
}
public static class ErrorExtensions
{
public static BaseError Join(this Seq<BaseError> errors) => string.Join("; ", errors);
}
}