108 references to ArgumentException
dotnet-sql-cache (1)
Program.cs (1)
268throw new ArgumentException(
dotnet-svcutil.xmlserializer (1)
Microsoft\Tools\ServiceModel\SvcUtil\ToolArgumentException.cs (1)
30internal ToolArgumentException(String message, Exception innerException) : base(message, innerException)
dotnet-svcutil-lib (6)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\SchemaImporter.cs (1)
70throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRSerialization.CannotImportInvalidSchemas), ex));
FrameworkFork\System.ServiceModel\Framework\System\ComponentModel\InvalidEnumArgumentException.cs (1)
36: base(message, innerException)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlImporter.cs (1)
624throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(doc.Identifier, e));
FrameworkFork\System.Web.Services\Services\Description\ServiceDescription.cs (1)
3193throw new ArgumentException(GetDuplicateMessage(value.GetType(), key), e.InnerException);
Shared\Options\OptionValueParser.cs (1)
277throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Shared.Resources.ErrorInvalidOptionValueFormat, value, option.Name), innerException);
ToolArgumentException.cs (1)
28internal ToolArgumentException(String message, Exception innerException) : base(message, innerException)
Microsoft.Build (1)
ErrorUtilities.cs (1)
356throw new ArgumentException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword(resourceName, args), innerException);
Microsoft.Build.Engine.OM.UnitTests (1)
ErrorUtilities.cs (1)
356throw new ArgumentException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword(resourceName, args), innerException);
Microsoft.Build.Tasks.CodeAnalysis (1)
Utilities.cs (1)
142return new ArgumentException(string.Format(CultureInfo.CurrentCulture, errorString, args), e);
Microsoft.Build.Tasks.Core (5)
ErrorUtilities.cs (1)
356throw new ArgumentException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword(resourceName, args), innerException);
MetadataConversionUtilities.cs (1)
46throw new ArgumentException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("General.InvalidAttributeMetadata", item.ItemSpec, itemMetadataName, metadataValue, "bool"), e);
XmlPeek.cs (1)
186throw new ArgumentException(ResourceUtilities.GetResourceString("XmlPeek.NamespacesParameterNotWellFormed"), xe);
XmlPoke.cs (1)
172throw new ArgumentException(ResourceUtilities.GetResourceString("XmlPoke.NamespacesParameterNotWellFormed"), xe);
XslTransformation.cs (1)
227throw new ArgumentException(ResourceUtilities.GetResourceString("XslTransform.XsltParameterNotWellFormed"), xe);
Microsoft.Build.Utilities.Core (1)
ErrorUtilities.cs (1)
356throw new ArgumentException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword(resourceName, args), innerException);
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Extensions\ProtocolConversions.cs (1)
327throw new ArgumentException($"Range={RangeToString(range)}. text.Length={text.Length}. text.Lines.Count={text.Lines.Count}", ex);
Microsoft.DotNet.Helix.Client (1)
HelixApi.cs (1)
49throw new ArgumentException(message, ex);
MSBuild (1)
ErrorUtilities.cs (1)
356throw new ArgumentException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword(resourceName, args), innerException);
MSBuildTaskHost (1)
D\a\_work\1\s\bin\repo\msbuild\src\Shared\ErrorUtilities.cs\ErrorUtilities.cs (1)
356throw new ArgumentException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword(resourceName, args), innerException);
PresentationCore (46)
MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (2)
949throw new ArgumentException(SR.InvalidDataInISF, ex); 954throw new ArgumentException(SR.InvalidDataInISF, ex);
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (6)
133throw new ArgumentException(SR.IsfOperationFailed, ex); 138throw new ArgumentException(SR.IsfOperationFailed, ex); 143throw new ArgumentException(SR.IsfOperationFailed, ex); 148throw new ArgumentException(SR.IsfOperationFailed, ex); 153throw new ArgumentException(SR.IsfOperationFailed, ex); 158throw new ArgumentException(SR.IsfOperationFailed, ex);
src\Microsoft.DotNet.Wpf\src\Common\Graphics\wgx_render.cs (15)
813return new System.ArgumentException(SR.Image_PropertyNotFound, exceptionForHR); 819return new System.ArgumentException(SR.Image_PropertySize, exceptionForHR); 831return new System.ArgumentException(SR.Image_TooManyScanlines, exceptionForHR); 837return new System.ArgumentException(SR.Image_BadDimensions, exceptionForHR); 851return new System.ArgumentException(SR.Image_FrameMissing, exceptionForHR); 854return new System.ArgumentException(SR.Image_BadMetadataHeader, exceptionForHR); 857return new System.ArgumentException(SR.Image_BadStreamData, exceptionForHR); 869return new System.ArgumentException(SR.Image_SizeOutOfRange, exceptionForHR); 899return new System.ArgumentException(SR.Image_InsufficientBuffer, exceptionForHR); 902return new System.ArgumentException(SR.Format(SR.Media_InvalidArgument, null), exceptionForHR); 945return new System.ArgumentException(SR.D3DImage_InvalidUsage, exceptionForHR); 947return new System.ArgumentException(SR.D3DImage_SurfaceTooBig, exceptionForHR); 949return new System.ArgumentException(SR.D3DImage_InvalidPool, exceptionForHR); 951return new System.ArgumentException(SR.D3DImage_InvalidDevice, exceptionForHR); 953return new System.ArgumentException(SR.D3DImage_AARequires9Ex, exceptionForHR);
System\Windows\FreezableCollection.cs (1)
496throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e);
System\Windows\Generated\TextDecorationCollection.cs (1)
408throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e);
System\Windows\Media\Animation\Generated\TimelineCollection.cs (1)
407throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e);
System\Windows\Media\Effects\Generated\BitmapEffectCollection.cs (1)
410throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e);
System\Windows\Media\Generated\DoubleCollection.cs (1)
382throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e);
System\Windows\Media\Generated\DrawingCollection.cs (1)
429throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e);
System\Windows\Media\Generated\GeneralTransformCollection.cs (1)
417throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e);
System\Windows\Media\Generated\GeometryCollection.cs (1)
429throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e);
System\Windows\Media\Generated\GradientStopCollection.cs (1)
417throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e);
System\Windows\Media\Generated\Int32Collection.cs (1)
382throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e);
System\Windows\Media\Generated\PathFigureCollection.cs (1)
418throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e);
System\Windows\Media\Generated\PathSegmentCollection.cs (1)
417throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e);
System\Windows\Media\Generated\PointCollection.cs (1)
382throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e);
System\Windows\Media\Generated\TextEffectCollection.cs (1)
417throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e);
System\Windows\Media\Generated\TransformCollection.cs (1)
429throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e);
System\Windows\Media\Generated\VectorCollection.cs (1)
382throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e);
System\Windows\Media3D\Generated\GeneralTransform3DCollection.cs (1)
415throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e);
System\Windows\Media3D\Generated\MaterialCollection.cs (1)
427throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e);
System\Windows\Media3D\Generated\Model3DCollection.cs (1)
427throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e);
System\Windows\Media3D\Generated\Point3DCollection.cs (1)
380throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e);
System\Windows\Media3D\Generated\Transform3DCollection.cs (1)
427throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e);
System\Windows\Media3D\Generated\Vector3DCollection.cs (1)
380throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e);
System\Windows\Media3D\Visual3DCollection.cs (1)
174throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, "Visual3DCollection"), e);
PresentationFramework (4)
MS\Internal\Data\ViewManager.cs (1)
592throw new ArgumentException(SR.Format(SR.CollectionView_ViewTypeInsufficient,
System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
1187throw new ArgumentException(SR.Format(SR.ListView_MissingParameterlessConstructor, headerType), e);
System\Windows\Documents\NLGSpellerInterop.cs (1)
977throw new ArgumentException(SR.Format(SR.CustomDictionaryFailedToLoadDictionaryUri, lexiconFilePath), e);
System\Windows\Documents\WinRTSpellerInterop.cs (1)
488throw new ArgumentException(SR.Format(SR.CustomDictionaryFailedToLoadDictionaryUri, lexiconFilePath), e);
System.ComponentModel.Primitives (2)
System\ComponentModel\InvalidAsynchronousStateException.cs (1)
38public InvalidAsynchronousStateException(string? message, Exception? innerException) : base(message, innerException)
System\ComponentModel\InvalidEnumArgumentException.cs (1)
38: base(message, innerException)
System.ComponentModel.TypeConverter (2)
src\libraries\Common\src\System\Drawing\ColorConverterCommon.cs (1)
112throw new ArgumentException(SR.Format(SR.ConvertInvalidPrimitive, text.ToString(), nameof(Int32)), e);
System\ComponentModel\ToolboxItemAttribute.cs (1)
93throw new ArgumentException(SR.Format(SR.ToolboxItemAttributeFailedGetType, _toolboxItemTypeName), ex);
System.Data.Common (2)
src\libraries\Common\src\System\Data\Common\AdapterUtil.cs (1)
53ArgumentException e = new ArgumentException(error, inner);
System\Data\DataException.cs (1)
339internal static Exception _Argument(string error, Exception? innerException) => TraceExceptionAsReturnValue(new ArgumentException(error, innerException));
System.Data.Odbc (2)
Common\System\Data\Common\AdapterUtil.Odbc.cs (1)
398e = new ArgumentException(message, inner);
src\libraries\Common\src\System\Data\Common\AdapterUtil.cs (1)
53ArgumentException e = new ArgumentException(error, inner);
System.Drawing.Primitives (1)
src\libraries\Common\src\System\Drawing\ColorConverterCommon.cs (1)
112throw new ArgumentException(SR.Format(SR.ConvertInvalidPrimitive, text.ToString(), nameof(Int32)), e);
System.Formats.Cbor (2)
System\Formats\Cbor\Writer\CborWriter.cs (1)
166throw new ArgumentException(SR.Cbor_Writer_PayloadIsNotValidCbor, e);
System\Formats\Cbor\Writer\CborWriter.String.cs (1)
132throw new ArgumentException(SR.Cbor_Writer_InvalidUtf8String, e);
System.Private.CoreLib (16)
src\libraries\System.Private.CoreLib\src\System\ArgumentNullException.cs (1)
34: base(message ?? SR.ArgumentNull_Generic, innerException)
src\libraries\System.Private.CoreLib\src\System\ArgumentOutOfRangeException.cs (1)
43: base(message ?? SR.Arg_ArgumentOutOfRangeException, innerException)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (1)
3442throw new ArgumentException(msg, exception);
src\libraries\System.Private.CoreLib\src\System\DuplicateWaitObjectException.cs (1)
38: base(message ?? SR.Arg_DuplicateWaitObjectException, innerException)
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureNotFoundException.cs (3)
33: base(message ?? DefaultMessage, innerException) 44: base(message ?? DefaultMessage, innerException) 50: base(message ?? DefaultMessage, innerException)
src\libraries\System.Private.CoreLib\src\System\Resources\ManifestBasedResourceGroveler.cs (1)
158throw new ArgumentException(SR.Format(SR.Arg_InvalidNeutralResourcesLanguage_Asm_Culture, a, attr.CultureName), e);
src\libraries\System.Private.CoreLib\src\System\StartupHookProvider.cs (2)
131throw new ArgumentException(SR.Format(SR.Argument_InvalidStartupHookSimpleAssemblyName, startupHookPart), assemblyNameException); 163throw new ArgumentException(
src\libraries\System.Private.CoreLib\src\System\Text\DecoderExceptionFallback.cs (1)
92: base(message, innerException)
src\libraries\System.Private.CoreLib\src\System\Text\EncoderExceptionFallback.cs (1)
93: base(message, innerException)
src\System\Reflection\RuntimeModule.cs (3)
125throw new ArgumentException(SR.Argument_BadImageFormatExceptionResolve, e); 214throw new ArgumentException(SR.Argument_BadImageFormatExceptionResolve, e); 246throw new ArgumentException(SR.Argument_BadImageFormatExceptionResolve, e);
src\System\RuntimeType.CoreCLR.cs (1)
2020throw new ArgumentException(
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\SchemaImporter.cs (1)
66throw new ArgumentException(SR.Format(SR.CannotImportInvalidSchemas), ex);
System.Text.Json (1)
System\Text\Json\ThrowHelper.cs (1)
582return new ArgumentException(SR.CannotTranscodeInvalidUtf16, innerException);
System.Web.Services.Description (1)
System\Web\Services\Description\ServiceDescription.cs (1)
2085throw new ArgumentException(GetDuplicateMessage(value.GetType(), key), e.InnerException);
System.Windows.Forms (7)
System\Resources\ResXResourceReader.cs (2)
392throw new ArgumentException(string.Format(SR.InvalidResXFile, e.Message), e); 404throw new ArgumentException(string.Format(SR.InvalidResXFile, xmlEx.Message), xmlEx);
System\Windows\Forms\Controls\MonthCalendar\SelectionRangeConverter.cs (2)
150throw new ArgumentException(SR.PropertyValueInvalidEntry, invalidCast); 154throw new ArgumentException(SR.PropertyValueInvalidEntry, nullRef);
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
2871throw new ArgumentException(SR.InvalidFileFormat, ex);
System\Windows\Forms\DataBinding\ListBindingConverter.cs (2)
93throw new ArgumentException(SR.PropertyValueInvalidEntry, invalidCast); 97throw new ArgumentException(SR.PropertyValueInvalidEntry, nullRef);