Xamarin Public Jenkins 6992685b86 Imported Upstream version 4.2.0.179
Former-commit-id: 0a113cb3a6feb7873f632839b1307cc6033cd595
2015-11-10 14:54:39 +00:00

62 lines
1.6 KiB
C#

using System;
namespace System.Linq
{
static class Error
{
public static ArgumentNullException ArgumentNull (string parameter)
{
return new ArgumentNullException (parameter);
}
public static ArgumentOutOfRangeException ArgumentOutOfRange (string parameter)
{
return new ArgumentOutOfRangeException (parameter);
}
public static ArgumentException ArgumentNotValid (string parameter)
{
return new ArgumentException (parameter);
}
public static NotSupportedException NotSupported ()
{
return new NotSupportedException ();
}
public static InvalidOperationException NoElements ()
{
return new InvalidOperationException (Strings.NoElements);
}
public static InvalidOperationException NoMatch ()
{
return new InvalidOperationException (Strings.NoMatch);
}
public static InvalidOperationException MoreThanOneElement ()
{
return new InvalidOperationException (Strings.MoreThanOneElement);
}
public static InvalidOperationException MoreThanOneMatch ()
{
return new InvalidOperationException (Strings.MoreThanOneMatch);
}
public static ArgumentException ArgumentNotIEnumerableGeneric (object message)
{
return new ArgumentException (String.Format ("{0} is not IEnumerable<>", message));
}
public static InvalidOperationException NoMethodOnTypeMatchingArguments (object p0, object p1)
{
return new InvalidOperationException (Strings.NoMethodOnTypeMatchingArguments (p0, p1));
}
public static InvalidOperationException NoMethodOnType (object p0, object p1)
{
return new InvalidOperationException (Strings.NoMethodOnType (p0, p1));
}
}
}