239 references to SR
System.Net.Mail (239)
src\libraries\Common\src\System\Net\ContextAwareResult.cs (2)
134throw new InvalidOperationException(SR.net_completed_result); 157throw new InvalidOperationException(SR.net_completed_result);
System\Net\Base64Stream.cs (1)
105throw new FormatException(SR.MailBase64InvalidCharacter);
System\Net\BufferBuilder.cs (2)
90throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter, c));
System\Net\DelegatedStream.cs (15)
58throw new NotSupportedException(SR.SeekNotSupported); 69throw new NotSupportedException(SR.SeekNotSupported); 76throw new NotSupportedException(SR.SeekNotSupported); 85throw new NotSupportedException(SR.ReadNotSupported); 93throw new NotSupportedException(SR.WriteNotSupported); 108throw new NotSupportedException(SR.ReadNotSupported); 116throw new NotSupportedException(SR.WriteNotSupported); 134throw new NotSupportedException(SR.ReadNotSupported); 142throw new NotSupportedException(SR.ReadNotSupported); 150throw new NotSupportedException(SR.ReadNotSupported); 158throw new NotSupportedException(SR.SeekNotSupported); 166throw new NotSupportedException(SR.SeekNotSupported); 174throw new NotSupportedException(SR.WriteNotSupported); 182throw new NotSupportedException(SR.WriteNotSupported); 190throw 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 (4)
59throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter, data[index])); 72throw 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)
127throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter, data[offset])); 139throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter, data[offset])); 151throw new FormatException(SR.InvalidHeaderName); 196throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter, data[offset])); 201throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter, data[offset])); 209throw new FormatException(SR.MailHeaderFieldMalformedHeader); 235throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter, span[i])); 347throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter, ch));
System\Net\Mail\MailPriority.cs (4)
158throw new ArgumentException(SR.MailSubjectInvalidFormat); 313throw new ArgumentException(SR.net_io_invalidasyncresult); 318throw new InvalidOperationException(SR.Format(SR.net_io_invalidendcall, nameof(EndSend)));
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 (22)
164throw new InvalidOperationException(SR.SmtpInvalidOperationDuringSend); 189throw new InvalidOperationException(SR.SmtpInvalidOperationDuringSend); 212throw new InvalidOperationException(SR.SmtpInvalidOperationDuringSend); 230throw new InvalidOperationException(SR.SmtpInvalidOperationDuringSend); 253throw new InvalidOperationException(SR.SmtpInvalidOperationDuringSend); 373throw new SmtpException(SR.SmtpNeedAbsolutePickupDirectory); 422throw new InvalidOperationException(SR.net_inasync); 432throw new InvalidOperationException(SR.SmtpFromRequired); 459throw new InvalidOperationException(SR.SmtpRecipientRequired); 476throw new NotSupportedException(SR.SmtpGetIisPickupDirectoryNotSupported); 481throw new SmtpException(SR.SmtpPickupDirectoryDoesnotSupportSsl); 521throw new SmtpException(SR.net_timeout); 531throw new SmtpException(SR.SmtpSendMailFailure, e); 554throw new InvalidOperationException(SR.net_inasync); 566throw new InvalidOperationException(SR.SmtpFromRequired); 593throw new InvalidOperationException(SR.SmtpRecipientRequired); 610throw new NotSupportedException(SR.SmtpGetIisPickupDirectoryNotSupported); 616throw new SmtpException(SR.SmtpPickupDirectoryDoesnotSupportSsl); 679throw new SmtpException(SR.SmtpSendMailFailure, e); 816throw new InvalidOperationException(SR.UnspecifiedHost); 820throw new InvalidOperationException(SR.InvalidPort); 852exception = new SmtpException(SR.SmtpSendMailFailure, exception);
System\Net\Mail\SmtpCommands.cs (17)
209throw new SmtpException(SR.SmtpAuthResponseInvalid); 269throw new SmtpException(SR.net_webstatus_ServerProtocolViolation, serverResponse); 288throw new InvalidOperationException(SR.SmtpDataStreamOpen); 321throw new SmtpException(SR.net_webstatus_ServerProtocolViolation, serverResponse); 333throw new InvalidOperationException(SR.SmtpDataStreamOpen); 359throw new SmtpException(SR.SmtpEhloResponseInvalid); 365throw new SmtpException(SR.net_webstatus_ServerProtocolViolation, lines[0].Line); 386throw new InvalidOperationException(SR.SmtpDataStreamOpen); 421throw new SmtpException(SR.net_webstatus_ServerProtocolViolation, serverResponse); 440throw new InvalidOperationException(SR.SmtpDataStreamOpen); 479throw new SmtpException(SR.net_webstatus_ServerProtocolViolation, response); 498throw new InvalidOperationException(SR.SmtpDataStreamOpen); 538throw new SmtpException(SR.net_webstatus_ServerProtocolViolation, response); 557throw new InvalidOperationException(SR.SmtpDataStreamOpen); 608throw new SmtpException(SR.net_webstatus_ServerProtocolViolation, response); 626throw new InvalidOperationException(SR.SmtpDataStreamOpen); 649throw new InvalidOperationException(SR.SmtpDataStreamOpen);
System\Net\Mail\SmtpConnection.cs (7)
189throw new InvalidOperationException(SR.SmtpAlreadyConnected); 230throw new SmtpException(SR.MailServerDoesNotSupportStartTls); 278throw new SmtpException(SR.SmtpAuthenticationFailed); 417throw new InvalidOperationException(SR.SmtpAlreadyConnected); 552throw new SmtpException(SR.MailServerDoesNotSupportStartTls); 611throw new SmtpException(SR.MailServerDoesNotSupportStartTls); 816throw 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)
114throw new IOException(SR.Format(SR.net_io_readfailure, SR.net_io_connectionclosed)); 134throw new FormatException(SR.SmtpInvalidResponse); 151throw new FormatException(SR.SmtpInvalidResponse); 168throw new FormatException(SR.SmtpInvalidResponse); 193throw new FormatException(SR.SmtpInvalidResponse); 217throw new FormatException(SR.SmtpInvalidResponse); 247throw new FormatException(SR.SmtpInvalidResponse); 452throw new IOException(SR.Format(SR.net_io_readfailure, SR.net_io_connectionclosed));
System\Net\Mail\SmtpTransport.cs (1)
136throw new SmtpException(SR.MailHostNotFound, innerException);
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)
50throw new InvalidOperationException(SR.MailWriterIsInContent); 106throw 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\MimeBasePart.cs (3)
208throw new ArgumentException(SR.net_io_invalidasyncresult, nameof(asyncResult)); 213throw new InvalidOperationException(SR.Format(SR.net_io_invalidendcall, nameof(EndSend)));
System\Net\Mime\MimePart.cs (3)
99throw new NotSupportedException(SR.Format(SR.MimeTransferEncodingNotSupported, value)); 360throw new InvalidOperationException(SR.MimePartCantResetStream);
System\Net\Mime\QEncodedStream.cs (12)
96throw new FormatException(SR.Format(SR.InvalidHexDigit, b1)); 98throw new FormatException(SR.Format(SR.InvalidHexDigit, b2)); 113throw new FormatException(SR.Format(SR.InvalidHexDigit, b1)); 115throw new FormatException(SR.Format(SR.InvalidHexDigit, b2)); 166throw new FormatException(SR.Format(SR.InvalidHexDigit, b1)); 168throw 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);