226 references to SR
System.Net.Mail (226)
System\Net\Base64Stream.cs (1)
99throw new FormatException(SR.MailBase64InvalidCharacter);
System\Net\BufferBuilder.cs (2)
98throw 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 (7)
148throw new FormatException(SR.MailAddressInvalidFormat); 200throw new SmtpException(SR.Format(SR.SmtpNonAsciiUserNotSupported, Address)); 227throw new SmtpException(SR.Format(SR.SmtpInvalidHostName, Address), argEx); 233throw new SmtpException(SR.Format(SR.SmtpInvalidHostName, Address));
System\Net\Mail\MailAddressParser.cs (10)
79throw new FormatException(SR.MailAddressInvalidFormat); 116throw new FormatException(SR.MailAddressInvalidFormat); 152throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter, 197throw new FormatException(SR.MailAddressInvalidFormat); 332throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter, data[index])); 415throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter, data[index])); 461throw 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)
159throw 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 (30)
17return GetMessageForStatus(statusCode) + " " + SR.Format(SR.MailServerResponse, serverResponse); 25return SR.SmtpUnknownStatusCode; 27return SR.SmtpGeneralFailure; 29return SR.SmtpCommandUnrecognized; 31return SR.SmtpSyntaxError; 33return SR.SmtpCommandNotImplemented; 35return SR.SmtpBadCommandSequence; 37return SR.SmtpCommandParameterNotImplemented; 39return SR.SmtpSystemStatus; 41return SR.SmtpHelpMessage; 43return SR.SmtpServiceReady; 45return SR.SmtpServiceClosingTransmissionChannel; 47return SR.SmtpServiceNotAvailable; 49return SR.SmtpOK; 51return SR.SmtpUserNotLocalWillForward; 53return SR.SmtpCannotVerifyUserWillAttemptDelivery; 55return SR.SmtpMailboxBusy; 57return SR.SmtpMailboxUnavailable; 59return SR.SmtpLocalErrorInProcessing; 61return SR.SmtpUserNotLocalTryAlternatePath; 63return SR.SmtpInsufficientStorage; 65return SR.SmtpExceededStorageAllocation; 67return SR.SmtpMailboxNameNotAllowed; 69return SR.SmtpStartMailInput; 71return SR.SmtpTransactionFailed; 73return SR.SmtpClientNotPermitted; 75return SR.SmtpMustIssueStartTlsFirst; 113internal 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 (13)
92throw new IOException(SR.Format(SR.net_io_readfailure, SR.net_io_connectionclosed)); 107throw new FormatException(SR.SmtpInvalidResponse); 124throw new FormatException(SR.SmtpInvalidResponse); 141throw new FormatException(SR.SmtpInvalidResponse); 166throw new FormatException(SR.SmtpInvalidResponse); 190throw new FormatException(SR.SmtpInvalidResponse); 220throw new FormatException(SR.SmtpInvalidResponse); 282throw new IOException(SR.Format(SR.net_io_readfailure, SR.net_io_connectionclosed)); 291throw new FormatException(SR.SmtpInvalidResponse);
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, (char)buffer[source])); 99throw new FormatException(SR.Format(SR.InvalidHexDigit, (char)buffer[source + 1])); 114throw new FormatException(SR.Format(SR.InvalidHexDigit, (char)ReadState.Byte)); 116throw new FormatException(SR.Format(SR.InvalidHexDigit, (char)buffer[source])); 167throw new FormatException(SR.Format(SR.InvalidHexDigit, (char)buffer[source + 1])); 169throw new FormatException(SR.Format(SR.InvalidHexDigit, (char)buffer[source + 2]));
System\Net\Mime\QuotedPrintableStream.cs (12)
126throw new FormatException(SR.Format(SR.InvalidHexDigit, (char)buffer[source])); 128throw new FormatException(SR.Format(SR.InvalidHexDigit, (char)buffer[source + 1])); 143throw new FormatException(SR.Format(SR.InvalidHexDigit, (char)ReadState.Byte)); 145throw new FormatException(SR.Format(SR.InvalidHexDigit, (char)buffer[source])); 188throw new FormatException(SR.Format(SR.InvalidHexDigit, (char)buffer[source + 1])); 190throw new FormatException(SR.Format(SR.InvalidHexDigit, (char)buffer[source + 2]));
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);