64 references to ErrorHandling
Microsoft.CSharp (64)
Microsoft\CSharp\RuntimeBinder\BinderHelper.cs (1)
481throw ErrorHandling.Error(ErrorCode.ERR_DynamicBindingComUnsupported);
Microsoft\CSharp\RuntimeBinder\RuntimeBinder.cs (1)
1142throw ErrorHandling.Error(ErrorCode.ERR_BadIndexCount, type.GetArrayRank());
Microsoft\CSharp\RuntimeBinder\Semantics\Conversion.cs (8)
385throw ErrorHandling.Error(ErrorCode.ERR_ConstOutOfRange, value, dest); 391throw ErrorHandling.Error(ErrorCode.ERR_ValueCantBeNull, dest); 396throw ErrorHandling.Error(canCast(expr.Type, dest, flags) ? ErrorCode.ERR_NoImplicitConvCast : ErrorCode.ERR_NoImplicitConv, new ErrArg(expr.Type, ErrArgFlags.Unique), new ErrArg(dest, ErrArgFlags.Unique)); 465throw ErrorHandling.Error( 502throw ErrorHandling.Error(ErrorCode.ERR_ConstOutOfRangeChecked, value, dest); 508throw ErrorHandling.Error(ErrorCode.ERR_ValueCantBeNull, dest); 518return ErrorHandling.Error(ErrorCode.ERR_NoExplicitConv, new ErrArg(expr.Type, ErrArgFlags.Unique), new ErrArg(dest, ErrArgFlags.Unique)); 1059return ErrorHandling.Error(ErrorCode.ERR_AmbigUDConv, prguci[iuciBestSrc].Meth, prguci[iuciBestDst].Meth, typeSrc, typeDst);
Microsoft\CSharp\RuntimeBinder\Semantics\ExpressionBinder.cs (14)
503throw ErrorHandling.Error(ErrorCode.ERR_PropertyLacksGet, pwt); 518throw ErrorHandling.Error(ErrorCode.ERR_BadProtectedAccess, pwt, type, ContextForMemberLookup); 521throw ErrorHandling.Error(ErrorCode.ERR_InaccessibleGetter, pwt); 634throw ErrorHandling.Error(ErrorCode.ERR_AmbigCall, pmethAmbig1.mpwi, pmethAmbig2.mpwi); 806return ErrorHandling.Error(ErrorCode.ERR_BadBinaryOps, strOp, pOperand1.Type, pOperand2.Type); 809return ErrorHandling.Error(ErrorCode.ERR_BadUnaryOp, strOp, pOperand1.Type); 843throw ErrorHandling.Error(ErrorCode.ERR_BadProtectedAccess, pwtSlot, type, ContextForMemberLookup); 845throw ErrorHandling.Error(mwt.Meth().isSetAccessor() ? ErrorCode.ERR_InaccessibleSetter : ErrorCode.ERR_InaccessibleGetter, pwtSlot); 896throw ErrorHandling.Error(ErrorCode.ERR_AssgReadonlyProp, prop.PropWithTypeSlot); 901throw ErrorHandling.Error( 907throw ErrorHandling.Error(GetStandardLvalueError(kind)); 965throw ErrorHandling.Error(ErrorCode.ERR_ObjectProhibited, swt); 968throw ErrorHandling.Error(ErrorCode.ERR_ObjectRequired, swt); 1615throw ErrorHandling.Error(ErrorCode.ERR_UnsafeNeeded);
Microsoft\CSharp\RuntimeBinder\Semantics\GroupToArgsBinder.cs (16)
336throw ErrorHandling.Error(ErrorCode.ERR_AmbigCall, pAmbig1.mpwi, pAmbig2.mpwi); 340throw ErrorHandling.Error(ErrorCode.ERR_AmbigCall, pAmbig1.mpwi.MethProp(), pAmbig2.mpwi.MethProp()); 1098return ErrorHandling.Error(ErrorCode.ERR_DuplicateNamedArgument, _pDuplicateSpecifiedName); 1131return ErrorHandling.Error(ErrorCode.ERR_BadNonTrailingNamedArgument, name); 1144return ErrorHandling.Error(ErrorCode.ERR_BindToBogus, _mpwiBogus); 1177return ErrorHandling.Error(ErrorCode.ERR_CantInferMethTypeArgs, mwtCantInfer); 1183return ErrorHandling.Error(cvar > 0 ? ErrorCode.ERR_BadArity : ErrorCode.ERR_HasNoTypeVars, _mwtBadArity, new ErrArgSymKind(_mwtBadArity.Meth()), _pArguments.carg); 1198? ErrorHandling.Error( 1201: ErrorHandling.Error(ErrorCode.ERR_BadNamedArgument, _pGroup.Name, _pInvalidSpecifiedName); 1206return ErrorHandling.Error(ErrorCode.ERR_NamedArgumentUsedInPositional, _pNameUsedInPositionalArgument); 1213return ErrorHandling.Error(ErrorCode.ERR_BindToBogus, nameErr); 1219return ErrorHandling.Error(ErrorCode.ERR_BadDelArgCount, nameErr, _pArguments.carg); 1225return ErrorHandling.Error(ErrorCode.ERR_BadCtorArgCount, _pGroup.ParentType, _pArguments.carg); 1228return ErrorHandling.Error(ErrorCode.ERR_BadArgCount, nameErr, _pArguments.carg); 1236return ErrorHandling.Error(ErrorCode.ERR_BadDelArgTypes, _results.BestResult.GetType()); 1239return ErrorHandling.Error(ErrorCode.ERR_BadArgTypes, _results.BestResult);
Microsoft\CSharp\RuntimeBinder\Semantics\MemberLookup.cs (12)
477? ErrorHandling.Error( 480: ErrorHandling.Error( 605return ErrorHandling.Error(ErrorCode.ERR_AmbigMember, _swtFirst, _swtAmbig); 611? ErrorHandling.Error(ErrorCode.ERR_CantCallSpecialMethod, _swtInaccess) 619? ErrorHandling.Error(ErrorCode.ERR_BadCtorArgCount, ((AggregateType)_typeSrc).OwningAggregate, _arity) 620: ErrorHandling.Error(ErrorCode.ERR_NoConstructors, ((AggregateType)_typeSrc).OwningAggregate); 625return ErrorHandling.Error(ErrorCode.ERR_NoSuchMember, _typeSrc, _name); 630return ErrorHandling.Error(ErrorCode.ERR_BadIndexLHS, _typeSrc); 635return ErrorHandling.Error((_flags & MemLookFlags.MustBeInvocable) != 0 ? ErrorCode.ERR_NonInvocableMemberCalled : ErrorCode.ERR_CantCallSpecialMethod, _swtBad); 650return ErrorHandling.Error(cvar > 0 ? ErrorCode.ERR_BadArity : ErrorCode.ERR_HasNoTypeVars, _swtBadArity, new ErrArgSymKind(_swtBadArity.Sym), cvar); 653return ErrorHandling.Error(ErrorCode.ERR_TypeArgsNotAllowed, _swtBadArity, new ErrArgSymKind(_swtBadArity.Sym)); 656return ErrorHandling.Error(ErrorCode.ERR_NoSuchMember, _typeSrc, _name);
Microsoft\CSharp\RuntimeBinder\Semantics\Operators.cs (5)
2325? ErrorHandling.Error(ErrorCode.ERR_AmbigBinaryOps, strOp, op1.Type, op2.Type) 2326: ErrorHandling.Error(ErrorCode.ERR_AmbigUnaryOp, strOp, op1.Type); 2343throw ErrorHandling.Error(ErrorCode.ERR_BadBoolOp, pCall.MethWithInst); 2362throw ErrorHandling.Error(ErrorCode.ERR_MustHaveOpTF, typeRet); 2565throw ErrorHandling.Error(ErrorCode.ERR_AmbigCall, pmethAmbig1.mpwi, pmethAmbig2.mpwi);
Microsoft\CSharp\RuntimeBinder\Semantics\SemanticChecker.cs (3)
28throw ErrorHandling.Error(ErrorCode.ERR_ConvertToStaticClass, type); 261? ErrorHandling.Error(ErrorCode.ERR_BadProtectedAccess, swtBad, typeQual, symWhere) 262: ErrorHandling.Error(ErrorCode.ERR_BadAccess, swtBad);
Microsoft\CSharp\RuntimeBinder\Semantics\TypeBind.cs (4)
173throw ErrorHandling.Error(ErrorCode.ERR_RefConstraintNotSatisfied, symErr, new ErrArgNoRef(var), arg); 196throw ErrorHandling.Error(ErrorCode.ERR_ValConstraintNotSatisfied, symErr, new ErrArgNoRef(var), arg); 264throw ErrorHandling.Error(error, new ErrArg(symErr), new ErrArg(typeBnd, ErrArgFlags.Unique), var, new ErrArg(arg, ErrArgFlags.Unique)); 295throw ErrorHandling.Error(ErrorCode.ERR_NewConstraintNotSatisfied, symErr, new ErrArgNoRef(var), arg);