220 references to SR
System.Net.Mail (220)
System\Net\Base64Stream.cs (1)
103throw new FormatException(SR.MailBase64InvalidCharacter);
System\Net\BufferBuilder.cs (2)
97throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter, c));
System\Net\DelegatedStream.cs (14)
35throw new NotSupportedException(SR.SeekNotSupported); 46throw new NotSupportedException(SR.SeekNotSupported); 53throw new NotSupportedException(SR.SeekNotSupported); 116throw new NotSupportedException(SR.ReadNotSupported); 124throw new NotSupportedException(SR.ReadNotSupported); 133throw new NotSupportedException(SR.ReadNotSupported); 142throw new NotSupportedException(SR.ReadNotSupported); 150throw new NotSupportedException(SR.ReadNotSupported); 159throw new NotSupportedException(SR.SeekNotSupported); 167throw new NotSupportedException(SR.SeekNotSupported); 175throw new NotSupportedException(SR.WriteNotSupported); 183throw new NotSupportedException(SR.WriteNotSupported); 192throw new NotSupportedException(SR.WriteNotSupported); 201throw new NotSupportedException(SR.WriteNotSupported);
System\Net\Mail\Attachment.cs (4)
138throw new ArgumentException(SR.MediaTypeInvalid, nameof(mediaType)); 142throw new ArgumentException(SR.MediaTypeInvalid, nameof(mediaType)); 147throw new ArgumentException(SR.MediaTypeInvalid, nameof(mediaType)); 224throw new ArgumentException(SR.MailHeaderInvalidCID, nameof(value));
System\Net\Mail\DomainLiteralReader.cs (4)
78throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter, data[index])); 97throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter,
System\Net\Mail\DotAtomReader.cs (6)
60throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter, data[index])); 72throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter, MailBnfHelper.ConsecutiveDots)); 85throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter, MailBnfHelper.Dot));
System\Net\Mail\MailAddress.cs (6)
189throw new SmtpException(SR.Format(SR.SmtpNonAsciiUserNotSupported, Address)); 216throw new SmtpException(SR.Format(SR.SmtpInvalidHostName, Address), argEx); 222throw new SmtpException(SR.Format(SR.SmtpInvalidHostName, Address));
System\Net\Mail\MailAddressParser.cs (9)
102throw new FormatException(SR.MailAddressInvalidFormat); 138throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter, 183throw new FormatException(SR.MailAddressInvalidFormat); 318throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter, data[index])); 401throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter, data[index])); 447throw new FormatException(SR.MailAddressInvalidFormat, e);
System\Net\Mail\MailBnfHelper.cs (14)
128throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter, data[offset])); 140throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter, data[offset])); 152throw new FormatException(SR.InvalidHeaderName); 197throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter, data[offset])); 202throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter, data[offset])); 210throw new FormatException(SR.MailHeaderFieldMalformedHeader); 236throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter, span[i])); 348throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter, ch));
System\Net\Mail\MailPriority.cs (1)
162throw new ArgumentException(SR.MailSubjectInvalidFormat);
System\Net\Mail\QuotedPairReader.cs (2)
61throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter, data[index]));
System\Net\Mail\QuotedStringFormatReader.cs (6)
83throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter, data[index])); 102throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter, MailBnfHelper.Quote)); 165throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter, data[index]));
System\Net\Mail\SmtpClient.cs (15)
156throw new InvalidOperationException(SR.SmtpInvalidOperationDuringSend); 181throw new InvalidOperationException(SR.SmtpInvalidOperationDuringSend); 204throw new InvalidOperationException(SR.SmtpInvalidOperationDuringSend); 222throw new InvalidOperationException(SR.SmtpInvalidOperationDuringSend); 245throw new InvalidOperationException(SR.SmtpInvalidOperationDuringSend); 365throw new SmtpException(SR.SmtpNeedAbsolutePickupDirectory); 438return (ExceptionDispatchInfo.SetCurrentStackTrace(new InvalidOperationException(SR.net_inasync)), true); 457throw new InvalidOperationException(SR.SmtpFromRequired); 484throw new InvalidOperationException(SR.SmtpRecipientRequired); 500throw new NotSupportedException(SR.SmtpGetIisPickupDirectoryNotSupported); 505throw new SmtpException(SR.SmtpPickupDirectoryDoesnotSupportSsl); 554return ExceptionDispatchInfo.SetCurrentStackTrace(new SmtpException(SR.net_timeout)); 566return ExceptionDispatchInfo.SetCurrentStackTrace(new SmtpException(SR.SmtpSendMailFailure, e)); 701throw new InvalidOperationException(SR.UnspecifiedHost); 705throw new InvalidOperationException(SR.InvalidPort);
System\Net\Mail\SmtpCommands.cs (17)
58throw new SmtpException(SR.SmtpAuthResponseInvalid); 104throw new SmtpException(SR.net_webstatus_ServerProtocolViolation, serverResponse); 116throw new InvalidOperationException(SR.SmtpDataStreamOpen); 149throw new SmtpException(SR.net_webstatus_ServerProtocolViolation, serverResponse); 161throw new InvalidOperationException(SR.SmtpDataStreamOpen); 182throw new SmtpException(SR.SmtpEhloResponseInvalid); 188throw new SmtpException(SR.net_webstatus_ServerProtocolViolation, lines[0].Line); 205throw new InvalidOperationException(SR.SmtpDataStreamOpen); 236throw new SmtpException(SR.net_webstatus_ServerProtocolViolation, serverResponse); 248throw new InvalidOperationException(SR.SmtpDataStreamOpen); 281throw new SmtpException(SR.net_webstatus_ServerProtocolViolation, response); 293throw new InvalidOperationException(SR.SmtpDataStreamOpen); 332throw new SmtpException(SR.net_webstatus_ServerProtocolViolation, response); 344throw new InvalidOperationException(SR.SmtpDataStreamOpen); 389throw new SmtpException(SR.net_webstatus_ServerProtocolViolation, response); 401throw new InvalidOperationException(SR.SmtpDataStreamOpen); 424throw new InvalidOperationException(SR.SmtpDataStreamOpen);
System\Net\Mail\SmtpConnection.cs (3)
98throw new InvalidOperationException(SR.SmtpAlreadyConnected); 154throw new SmtpException(SR.MailServerDoesNotSupportStartTls); 223throw new SmtpException(SR.SmtpAuthenticationFailed);
System\Net\Mail\SmtpException.cs (27)
17return GetMessageForStatus(statusCode) + " " + SR.Format(SR.MailServerResponse, serverResponse); 26return SR.SmtpCommandUnrecognized; 28return SR.SmtpSyntaxError; 30return SR.SmtpCommandNotImplemented; 32return SR.SmtpBadCommandSequence; 34return SR.SmtpCommandParameterNotImplemented; 36return SR.SmtpSystemStatus; 38return SR.SmtpHelpMessage; 40return SR.SmtpServiceReady; 42return SR.SmtpServiceClosingTransmissionChannel; 44return SR.SmtpServiceNotAvailable; 46return SR.SmtpOK; 48return SR.SmtpUserNotLocalWillForward; 50return SR.SmtpMailboxBusy; 52return SR.SmtpMailboxUnavailable; 54return SR.SmtpLocalErrorInProcessing; 56return SR.SmtpUserNotLocalTryAlternatePath; 58return SR.SmtpInsufficientStorage; 60return SR.SmtpExceededStorageAllocation; 62return SR.SmtpMailboxNameNotAllowed; 64return SR.SmtpStartMailInput; 66return SR.SmtpTransactionFailed; 68return SR.SmtpClientNotPermitted; 70return SR.SmtpMustIssueStartTlsFirst; 108internal SmtpException(string message, string? serverResponse) : base(message + " " + SR.Format(SR.MailServerResponse, serverResponse))
System\Net\Mail\SmtpFailedRecipientsException.cs (2)
49base(allFailed ? SR.SmtpAllRecipientsFailed : SR.SmtpRecipientFailed,
System\Net\Mail\SmtpReplyReaderFactory.cs (12)
88throw new IOException(SR.Format(SR.net_io_readfailure, SR.net_io_connectionclosed)); 108throw new FormatException(SR.SmtpInvalidResponse); 125throw new FormatException(SR.SmtpInvalidResponse); 142throw new FormatException(SR.SmtpInvalidResponse); 167throw new FormatException(SR.SmtpInvalidResponse); 191throw new FormatException(SR.SmtpInvalidResponse); 221throw new FormatException(SR.SmtpInvalidResponse); 284throw new IOException(SR.Format(SR.net_io_readfailure, SR.net_io_connectionclosed));
System\Net\Mail\WhitespaceReader.cs (8)
51throw new FormatException(SR.MailAddressInvalidFormat); 82throw new FormatException(SR.MailAddressInvalidFormat); 157throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter, 179throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter, data[index])); 206throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter, MailBnfHelper.EndComment));
System\Net\Mime\BaseWriter.cs (2)
49throw new InvalidOperationException(SR.MailWriterIsInContent); 103throw new InvalidOperationException(SR.MailWriterIsInContent);
System\Net\Mime\ContentDisposition.cs (8)
37throw new FormatException(SR.ContentDispositionInvalid); 265throw new FormatException(SR.MailHeaderFieldMalformedHeader); 284throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter, _disposition[offset - 1])); 299throw new FormatException(SR.MailHeaderFieldMalformedHeader); 306throw new FormatException(SR.ContentDispositionInvalid); 317throw new FormatException(SR.ContentDispositionInvalid); 329throw new FormatException(SR.ContentDispositionInvalid, exception);
System\Net\Mime\ContentType.cs (11)
100throw new FormatException(SR.MediaTypeInvalid); 105throw new FormatException(SR.MediaTypeInvalid); 229throw new FormatException(SR.ContentTypeInvalid); 235throw new FormatException(SR.ContentTypeInvalid); 242throw new FormatException(SR.ContentTypeInvalid); 254throw new FormatException(SR.ContentTypeInvalid); 260throw new FormatException(SR.ContentTypeInvalid); 265throw new FormatException(SR.ContentTypeInvalid); 274throw new FormatException(SR.ContentTypeInvalid); 282catch (FormatException fe) when (fe.Message != SR.ContentTypeInvalid) 284throw new FormatException(SR.ContentTypeInvalid);
System\Net\Mime\HeaderCollection.cs (1)
77throw new FormatException(SR.InvalidHeaderName);
System\Net\Mime\MimePart.cs (3)
99throw new NotSupportedException(SR.Format(SR.MimeTransferEncodingNotSupported, value)); 199throw new InvalidOperationException(SR.MimePartCantResetStream);
System\Net\Mime\QEncodedStream.cs (12)
97throw new FormatException(SR.Format(SR.InvalidHexDigit, b1)); 99throw new FormatException(SR.Format(SR.InvalidHexDigit, b2)); 114throw new FormatException(SR.Format(SR.InvalidHexDigit, b1)); 116throw new FormatException(SR.Format(SR.InvalidHexDigit, b2)); 167throw new FormatException(SR.Format(SR.InvalidHexDigit, b1)); 169throw new FormatException(SR.Format(SR.InvalidHexDigit, b2));
System\Net\Mime\QuotedPrintableStream.cs (12)
126throw new FormatException(SR.Format(SR.InvalidHexDigit, b1)); 128throw new FormatException(SR.Format(SR.InvalidHexDigit, b2)); 143throw new FormatException(SR.Format(SR.InvalidHexDigit, b1)); 145throw new FormatException(SR.Format(SR.InvalidHexDigit, b2)); 188throw new FormatException(SR.Format(SR.InvalidHexDigit, b1)); 190throw new FormatException(SR.Format(SR.InvalidHexDigit, b2));
System\Net\Mime\SmtpDateTime.cs (14)
181throw new FormatException(SR.MailDateInvalidFormat); 190throw new FormatException(SR.MailDateInvalidFormat); 195throw new FormatException(SR.MailDateInvalidFormat); 203throw new FormatException(SR.MailDateInvalidFormat); 218throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter, value)); 233throw new FormatException(SR.MailDateInvalidFormat); 243throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter, data)); 253throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter, data)); 264throw new FormatException(SR.MailDateInvalidFormat); 284throw new FormatException(SR.MailDateInvalidFormat); 345throw new FormatException(SR.MailDateInvalidFormat);
System\Net\TrackingStringDictionary.cs (4)
28throw new InvalidOperationException(SR.MailCollectionIsReadOnly); 39throw new InvalidOperationException(SR.MailCollectionIsReadOnly); 50throw new InvalidOperationException(SR.MailCollectionIsReadOnly); 64throw new InvalidOperationException(SR.MailCollectionIsReadOnly);