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