99 references to FormatException
mscorlib (66)
system\attribute.cs (1)
434throw new FormatException(
system\boolean.cs (1)
163throw new FormatException(Environment.GetResourceString("Format_BadBoolean"));
system\char.cs (1)
182throw new FormatException(Environment.GetResourceString("Format_NeedSingleChar"));
system\convert.cs (7)
557throw new FormatException(Environment.GetResourceString(ResId.Format_NeedSingleChar)); 2550throw new FormatException(Environment.GetResourceString("Format_BadBase64Char")); 2590throw new FormatException(Environment.GetResourceString("Format_BadBase64CharArrayLength")); 2620throw new FormatException(Environment.GetResourceString("Format_BadBase64CharArrayLength")); 2631throw new FormatException(Environment.GetResourceString("Format_BadBase64Char")); 2640throw new FormatException(Environment.GetResourceString("Format_BadBase64CharArrayLength")); 2697throw new FormatException(Environment.GetResourceString("Format_BadBase64Char"));
system\enum.cs (3)
647throw new FormatException(Environment.GetResourceString("Format_InvalidEnumFormatSpecification")); 669throw new FormatException(Environment.GetResourceString("Format_InvalidEnumFormatSpecification")); 867throw new FormatException(Environment.GetResourceString("Format_InvalidEnumFormatSpecification"));
system\globalization\datetimeformat.cs (8)
329throw new FormatException(Environment.GetResourceString("Format_InvalidString")); 339throw new FormatException( 510throw new FormatException(Environment.GetResourceString("Format_InvalidString")); 674throw new FormatException(Environment.GetResourceString("Format_InvalidString")); 697throw new FormatException(Environment.GetResourceString("Format_InvalidString")); 860throw new FormatException(Environment.GetResourceString("Format_InvalidString")); 890throw new FormatException(Environment.GetResourceString("Format_InvalidString")); 1116throw new FormatException(Environment.GetResourceString("Format_InvalidString"));
system\globalization\datetimeparse.cs (3)
4182return new FormatException(Environment.GetResourceString(result.failureMessageID)); 4184return new FormatException(Environment.GetResourceString(result.failureMessageID, result.failureMessageFormatArgument)); 4186return new FormatException(Environment.GetResourceString(result.failureMessageID, result.calendar));
system\globalization\timespanformat.cs (10)
60throw new FormatException(Environment.GetResourceString("Format_InvalidString")); 174throw new FormatException(Environment.GetResourceString("Format_InvalidString")); 180throw new FormatException(Environment.GetResourceString("Format_InvalidString")); 186throw new FormatException(Environment.GetResourceString("Format_InvalidString")); 195throw new FormatException(Environment.GetResourceString("Format_InvalidString")); 207throw new FormatException(Environment.GetResourceString("Format_InvalidString")); 232throw new FormatException(Environment.GetResourceString("Format_InvalidString")); 258throw new FormatException(Environment.GetResourceString("Format_InvalidString")); 276throw new FormatException(Environment.GetResourceString("Format_InvalidString")); 280throw new FormatException(Environment.GetResourceString("Format_InvalidString"));
system\globalization\timespanparse.cs (3)
490return new FormatException(Environment.GetResourceString(m_failureMessageID, m_failureMessageFormatArgument)); 493return new FormatException(Environment.GetResourceString(m_failureMessageID)); 500return new FormatException(Environment.GetResourceString("Format_InvalidString"));
system\guid.cs (7)
211return new FormatException(Environment.GetResourceString(m_failureMessageID, m_failureMessageFormatArgument)); 214return new FormatException(Environment.GetResourceString(m_failureMessageID)); 221return new FormatException(Environment.GetResourceString("Format_GuidUnrecognized")); 294throw new FormatException(Environment.GetResourceString("Format_InvalidGuidFormatSpecification")); 315throw new FormatException(Environment.GetResourceString("Format_InvalidGuidFormatSpecification")); 1206throw new FormatException(Environment.GetResourceString("Format_InvalidGuidFormatSpecification")); 1247throw new FormatException(Environment.GetResourceString("Format_InvalidGuidFormatSpecification"));
system\io\binaryreader.cs (1)
592throw new FormatException(Environment.GetResourceString("Format_Bad7BitInt32"));
system\number.cs (3)
687throw new FormatException(Environment.GetResourceString("Format_InvalidString")); 964throw new FormatException(Environment.GetResourceString("Format_InvalidString")); 1032throw new FormatException(Environment.GetResourceString("Format_InvalidString"));
system\reflection\customattribute.cs (1)
2029throw new FormatException(String.Format(
system\reflection\customattributeformatexception.cs (2)
26: base(Environment.GetResourceString("Arg_CustomAttributeFormatException")) { 30public CustomAttributeFormatException(String message) : base(message) {
system\reflection\mdconstant.cs (3)
75throw new FormatException(Environment.GetResourceString("Arg_BadLiteralFormat")); 101throw new FormatException(Environment.GetResourceString("Arg_BadLiteralFormat")); 164throw new FormatException(Environment.GetResourceString("Arg_BadLiteralFormat"));
system\resources\resourcereader.cs (8)
295throw new FormatException(Environment.GetResourceString("BadImageFormat_ResourcesNameInvalidOffset", r)); 388throw new FormatException(Environment.GetResourceString("BadImageFormat_ResourcesDataInvalidOffset", dataPos)); 478throw new FormatException(Environment.GetResourceString("BadImageFormat_ResourcesDataInvalidOffset", dataOffset)); 496throw new FormatException(Environment.GetResourceString("BadImageFormat_ResourcesDataInvalidOffset", dataOffset)); 515throw new FormatException(Environment.GetResourceString("BadImageFormat_ResourcesDataInvalidOffset", dataPos)); 1209throw new FormatException(Environment.GetResourceString("BadImageFormat_ResourcesNameInvalidOffset", numBytesToSkip)); 1215throw new FormatException(Environment.GetResourceString("BadImageFormat_ResourcesDataInvalidOffset", dPos)); 1240throw new FormatException(Environment.GetResourceString("BadImageFormat_ResourceNameCorrupted"));
system\security\util\urlstring.cs (1)
624throw new FormatException(Environment.GetResourceString("Format_StringZeroLength"));
system\text\stringbuilder.cs (2)
1319throw new FormatException(Environment.GetResourceString("Format_InvalidString")); 1377if (index >= args.Length) throw new FormatException(Environment.GetResourceString("Format_IndexOutOfRange"));
system\version.cs (1)
521return new FormatException(Environment.GetResourceString("Format_InvalidString"));
System (3)
net\System\Net\_WebProxyDataBuilder.cs (1)
150return new FormatException(message);
net\System\Net\cookieexception.cs (1)
23internal CookieException(string message) : base(message) {
net\System\URIFormatException.cs (1)
28public UriFormatException(string textString) : base(textString) {
System.Data (5)
fx\src\data\System\Data\SQLTypes\SQLDecimal.cs (5)
1021throw new FormatException(SQLResource.FormatMessage); 1055throw new FormatException(SQLResource.FormatMessage); 1077throw new FormatException(SQLResource.FormatMessage); 1095throw new FormatException(SQLResource.FormatMessage); 1100throw new FormatException(SQLResource.FormatMessage);
System.Web.DataVisualization (5)
Common\DataManager\DataPoint.cs (5)
4751 throw(new FormatException( SR.ExceptionAttributeInvalidFormat)); 4759 throw(new FormatException( SR.ExceptionAttributeInvalidFormat)); 4770 throw(new FormatException( SR.ExceptionAttributeNameIsNotUnique(values[0] ) ) ); 6992 throw(new FormatException(SR.ExceptionAttributeInvalidFormat)); 7000 throw(new FormatException(SR.ExceptionAttributeInvalidFormat));
System.Web.Extensions (5)
Compilation\WCFModel\MapFileLoader.cs (1)
342throw new FormatException(String.Format(CultureInfo.CurrentCulture,
Compilation\WCFModel\VSWCFServiceContractGenerator.cs (4)
567new FormatException(String.Format(CultureInfo.CurrentCulture, WCFModelStrings.ReferenceGroup_SharedTypeMustBePublic, mapping.TypeName))) 583new FormatException(String.Format(CultureInfo.CurrentCulture, WCFModelStrings.ReferenceGroup_ServiceContractMappingMissMatch, mapping.TypeName, contract.Namespace, contract.Name, mapping.TargetNamespace, mapping.Name))) 903new FormatException(String.Format(CultureInfo.CurrentCulture, WCFModelStrings.ReferenceGroup_SharedTypeMustBePublic, referencedType.TypeName))) 1205new FormatException(String.Format(CultureInfo.CurrentCulture, WCFModelStrings.ReferenceGroup_SharedTypeMustBePublic, referencedCollectionMapping.TypeName)))
System.Windows.Forms (4)
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (1)
2690throw new FormatException(String.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Formatter_CantConvert), value, this.DisplayType));
winforms\Managed\System\WinForms\Formatter.cs (3)
74throw new FormatException(GetCantConvertMessage(value, targetType)); 194throw new FormatException(GetCantConvertMessage(value, targetType)); 344throw new FormatException(GetCantConvertMessage(value, targetType));
System.Windows.Forms.DataVisualization (5)
Common\DataManager\DataPoint.cs (5)
4751 throw(new FormatException( SR.ExceptionAttributeInvalidFormat)); 4759 throw(new FormatException( SR.ExceptionAttributeInvalidFormat)); 4770 throw(new FormatException( SR.ExceptionAttributeNameIsNotUnique(values[0] ) ) ); 6992 throw(new FormatException(SR.ExceptionAttributeInvalidFormat)); 7000 throw(new FormatException(SR.ExceptionAttributeInvalidFormat));
System.Workflow.Runtime (2)
Hosting\DefaultWorkflowSchedulerService.cs (1)
74throw new FormatException(MAX_SIMULTANEOUS_WORKFLOWS_KEY);
Hosting\ManualWorkflowSchedulerService.cs (1)
93throw new FormatException(USE_ACTIVE_TIMERS_KEY);
System.Xml (2)
System\Xml\Schema\XmlValueConverter.cs (2)
655throw new FormatException(e.Message); 669throw new FormatException(e.Message);
WindowsBase (2)
Base\System\IO\FileFormatException.cs (2)
45: base(message) 86: base(message)