You've already forked linux-packaging-mono
Imported Upstream version 4.2.0.179
Former-commit-id: 0a113cb3a6feb7873f632839b1307cc6033cd595
This commit is contained in:
committed by
Jo Shields
parent
183bba2c9a
commit
6992685b86
62
mcs/class/System.Core/ReferenceSources/Error.cs
Normal file
62
mcs/class/System.Core/ReferenceSources/Error.cs
Normal file
@@ -0,0 +1,62 @@
|
||||
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));
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user