Error
using System;
namespace Microsoft.CSharp.RuntimeBinder
{
internal static class Error
{
internal static Exception InternalCompilerError()
{
return new RuntimeBinderInternalCompilerException(System.SR.InternalCompilerError);
}
internal static Exception BindRequireArguments()
{
return new ArgumentException(System.SR.BindRequireArguments);
}
internal static Exception BindCallFailedOverloadResolution()
{
return new RuntimeBinderException(System.SR.BindCallFailedOverloadResolution);
}
internal static Exception BindBinaryOperatorRequireTwoArguments()
{
return new ArgumentException(System.SR.BindBinaryOperatorRequireTwoArguments);
}
internal static Exception BindUnaryOperatorRequireOneArgument()
{
return new ArgumentException(System.SR.BindUnaryOperatorRequireOneArgument);
}
internal static Exception BindBinaryAssignmentRequireTwoArguments()
{
return new ArgumentException(System.SR.BindBinaryAssignmentRequireTwoArguments);
}
internal static Exception BindPropertyFailedMethodGroup(object p0)
{
return new RuntimeBinderException(System.SR.Format(System.SR.BindPropertyFailedMethodGroup, p0));
}
internal static Exception BindPropertyFailedEvent(object p0)
{
return new RuntimeBinderException(System.SR.Format(System.SR.BindPropertyFailedEvent, p0));
}
internal static Exception BindInvokeFailedNonDelegate()
{
return new RuntimeBinderException(System.SR.BindInvokeFailedNonDelegate);
}
internal static Exception BindImplicitConversionRequireOneArgument()
{
return new ArgumentException(System.SR.BindImplicitConversionRequireOneArgument);
}
internal static Exception BindExplicitConversionRequireOneArgument()
{
return new ArgumentException(System.SR.BindExplicitConversionRequireOneArgument);
}
internal static Exception BindBinaryAssignmentFailedNullReference()
{
return new RuntimeBinderException(System.SR.BindBinaryAssignmentFailedNullReference);
}
internal static Exception NullReferenceOnMemberException()
{
return new RuntimeBinderException(System.SR.NullReferenceOnMemberException);
}
internal static Exception BindCallToConditionalMethod(object p0)
{
return new RuntimeBinderException(System.SR.Format(System.SR.BindCallToConditionalMethod, p0));
}
internal static Exception BindToVoidMethodButExpectResult()
{
return new RuntimeBinderException(System.SR.BindToVoidMethodButExpectResult);
}
}
}