Aetheria/Assets/Scripts/NIH/LinqFaster/Utils/Error.cs
hyperion51 c58ba0b1da Copy Aetheria Code
Added a bunch of code from the old Aetheria project
2020-02-27 18:51:07 +00:00

18 lines
No EOL
861 B
C#

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(); }
}