Aetheria/Assets/Scripts/NIH/LinqFaster/Utils/Error.cs

18 lines
861 B
C#
Raw Normal View History

using System;
internal static class Error
{
internal static Exception ArgumentNull(string s) { return new ArgumentNullException(s); }
internal static Exception ArgumentOutOfRange(string s) { return new ArgumentOutOfRangeException(s); }
internal static Exception MoreThanOneElement() { return new InvalidOperationException("Sequence contains more than one element"); }
internal static Exception MoreThanOneMatch() { return new InvalidOperationException("Sequence contains more than one matching element"); }
internal static Exception NoElements() { return new InvalidOperationException("Sequence contains no elements"); }
internal static Exception NoMatch() { return new InvalidOperationException("Sequence contains no matching element"); }
internal static Exception NotSupported() { return new NotSupportedException(); }
}