C# Class Microsoft.CSharp.Expressions.Error

Strongly-typed and parameterized exception factory.
Show file Open project: bartdesmet/ExpressionFutures

Private Methods

Method Description
AccessorCannotBeStatic ( object p0 ) : Exception

ArgumentException with message like "A non-static 'get' accessor is required for property '{0}'"

ArrayBoundsElementCountMismatch ( ) : Exception

ArgumentException with message like "The number of elements does not match the length of the array"

AsyncLambdaCantHaveByRefParameter ( object p0 ) : Exception

ArgumentException with message like "Parameter '{0}' is passed by reference which is not supported in asynchronous lambda expressions"

AsyncLambdaInvalidReturnType ( object p0 ) : Exception

ArgumentException with message like "Return type '{0}' is not valid for an asynchronous lambda expression"

AwaitForbiddenHere ( object p0 ) : Exception

InvalidOperationException with message like "Await expression cannot occur in '{0}'"

AwaiterGetResultTypeInvalid ( object p0 ) : Exception

ArgumentException with message like "The 'GetResult' method on awaiter type '{0}' has an unsupported return type"

AwaiterIsCompletedShouldNotBeIndexer ( object p0 ) : Exception

ArgumentException with message like "The 'IsCompleted' property on awaiter type '{0}' should not have indexer parameters"

AwaiterIsCompletedShouldReturnBool ( object p0 ) : Exception

ArgumentException with message like "The 'IsCompleted' property on awaiter type '{0}' should return 'Boolean'"

AwaiterTypeShouldHaveGetResultMethod ( object p0 ) : Exception

ArgumentException with message like "Awaiter type '{0}' should have a 'GetResult' method"

AwaiterTypeShouldHaveIsCompletedProperty ( object p0 ) : Exception

ArgumentException with message like "Awaiter type '{0}' should have an 'IsCompleted' property with a 'get' accessor"

AwaiterTypeShouldImplementINotifyCompletion ( object p0 ) : Exception

ArgumentException with message like "Awaiter type '{0}' should implement 'INotifyCompletion'"

BoundCannotBeLessThanZero ( ) : Exception

ArgumentException with message like "An array dimension cannot be less than 0"

ConditionalAccessRequiresNonStaticMember ( ) : Exception

ArgumentException with message like "Conditional access expressions require non-static members or extension methods."

ConditionalAccessRequiresReadableProperty ( ) : Exception

ArgumentException with message like "Conditional access expressions require readable properties."

ConditionalReceiverTypeMismatch ( object p0, object p1 ) : Exception

ArgumentException with message like "Type '{0}' of the receiver expression is not compatible with non-null type '{1}' of the conditional receiver."

ConversionInvalidArgument ( object p0, object p1 ) : Exception

ArgumentException with message like "A collection element of type '{0}' cannot be assigned to the conversion lambda parameter of type '{1}'"

ConversionInvalidResult ( object p0, object p1 ) : Exception

ArgumentException with message like "The conversion lambda result type '{0}' cannot be assigned to loop iteration variable type '{1}'"

ConversionNeedsOneParameter ( ) : Exception

ArgumentException with message like "The conversion lambda should have one parameter"

DuplicateLabels ( ) : Exception

ArgumentException with message like "Break and continue lables should be different"

DuplicateParameterBinding ( object p0 ) : Exception

ArgumentException with message like "Parameter '{0}' has multiple bindings"

DuplicateTestValue ( object p0 ) : Exception

ArgumentException with message like "The test value '{0}' occurs more than once."

EnumeratorShouldHaveCurrentProperty ( object p0 ) : Exception

ArgumentException with message like "Enumerator type '{0}' should have a 'Current' property with a 'get' accessor"

EnumeratorShouldHaveMoveNextMethod ( object p0 ) : Exception

ArgumentException with message like "Enumerator type '{0}' should have a 'MoveNext' method with a 'Boolean' return type"

ExpressionTypeDoesNotMatchParameter ( object p0, object p1 ) : Exception

ArgumentException with message like "Expression of type '{0}' cannot be used for parameter of type '{1}'"

ExtensionMethodRequiresInstance ( ) : Exception

ArgumentException with message like "Conditional call expressions for extensions methods should specify an instance expression."

GetAwaiterShouldNotBeGeneric ( ) : Exception

ArgumentException with message like "The 'GetAwaiter' method should not be generic"

GetAwaiterShouldReturnAwaiterType ( ) : Exception

ArgumentException with message like "The 'GetAwaiter' method has an unsupported return type"

GetAwaiterShouldTakeZeroParameters ( ) : Exception

ArgumentException with message like "The 'GetAwaiter' method should take zero parameters"

GotoCanOnlyBeReducedInSwitch ( ) : Exception

InvalidOperationException with message like "A 'goto case' or 'goto default' statement node can only be reduced when embedded in a switch statement node."

IndexOutOfRange ( ) : Exception

ArgumentOutOfRangeException with message like "The specified index is out of range"

InvalidCompoundAssignment ( object p0, object p1 ) : Exception

ArgumentException with message like "Compound assignment operation '{0}' is not supported for type '{1}'."

InvalidCompoundAssignmentWithOperands ( object p0, object p1, object p2 ) : Exception

ArgumentException with message like "Compound assignment operation '{0}' is not supported for operands of type '{1}' and '{2}'."

InvalidConditionalReceiverExpressionType ( object p0 ) : Exception

ArgumentException with message like "Type '{0}' is not a valid type for a receiver in a conditional access expression."

InvalidConditionalReceiverType ( object p0 ) : Exception

ArgumentException with message like "Type '{0}' is not a valid type for a conditional receiver."

InvalidGotoCase ( object p0 ) : Exception

InvalidOperationException with message like "A 'goto case {0}' statement was found but the containing switch statement has no such label."

InvalidGotoDefault ( ) : Exception

InvalidOperationException with message like "A 'goto default' statement was found but the containing switch statement has no default label."

InvalidInitializer ( ) : Exception

ArgumentException with message like "Initializers should be assignments to variables"

InvalidSwitchType ( object p0 ) : Exception

ArgumentException with message like "Type '{0}' is not a valid governing type for a switch statement."

InvalidUnaryAssignmentWithOperands ( object p0, object p1 ) : Exception

ArgumentException with message like "Unary assignment operation '{0}' is not supported for an operand of type '{1}'."

LockNeedsReferenceType ( object p0 ) : Exception

ArgumentException with message like "An expression of type '{0}' can't be used as a lock"

MoreThanOneIEnumerableFound ( object p0 ) : Exception

ArgumentException with message like "Collection type '{0}' has multiple implementations of 'IEnumerable<T>'"

NoEnumerablePattern ( object p0 ) : Exception

ArgumentException with message like "Collection type '{0}' has no valid enumerable pattern"

NonStaticConstructorRequired ( ) : Exception

ArgumentException with message like "A non-static constructor is required"

ParameterIndexOutOfBounds ( object p0, object p1 ) : Exception

ArgumentException with message like "Parameter index '{0}' is out of bounds for method '{1}'"

ParameterNotDefinedForMethod ( object p0, object p1 ) : Exception

ArgumentException with message like "Parameter '{0}' is not defined for method '{1}'"

PropertyDoesNotHaveGetAccessor ( object p0 ) : Exception

ArgumentException with message like "The property '{0}' has no 'get' accessor"

PropertyDoesNotHaveSetAccessor ( object p0 ) : Exception

ArgumentException with message like "The property '{0}' has no 'set' accessor"

RankMismatch ( ) : Exception

ArgumentException with message like "The number of indexes specified does not match the array rank"

SwitchBreakLabelShouldBeVoid ( ) : Exception

ArgumentException with message like "The break label of a switch statement should be of type 'void'."

SwitchCantHaveNullCase ( object p0 ) : Exception

ArgumentException with message like "A 'null' test value cannot be used in a switch statement with governing type '{0}'."

SwitchCaseHasIncompatibleType ( object p0, object p1 ) : Exception

ArgumentException with message like "A test value with type '{0}' cannot be used in a swich statement with governing type '{1}'."

TestValuesShouldHaveConsistentType ( ) : Exception

ArgumentException with message like "All specified test values should have the same type."

TooManyArguments ( ) : Exception

ArgumentException with message like "Too many arguments have been specified."

UnboundParameter ( object p0 ) : Exception

ArgumentException with message like "Non-optional parameter '{0}' has no binding"