102 references to SR
System.IO.Pipes (102)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (18)
126new FileNotFoundException(SR.Format(SR.IO_FileNotFound_FileName, path), path) : 127new FileNotFoundException(SR.IO_FileNotFound); 133new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, path)) : 134new DirectoryNotFoundException(SR.IO_PathNotFound_NoPathName); 141new UnauthorizedAccessException(SR.Format(SR.UnauthorizedAccess_IODenied_Path, path), inner) : 142new UnauthorizedAccessException(SR.UnauthorizedAccess_IODenied_NoPathName, inner); 146new PathTooLongException(SR.Format(SR.IO_PathTooLong_Path, path)) : 147new PathTooLongException(SR.IO_PathTooLong); 151new IOException(SR.Format(SR.IO_SharingViolation_File, path), errorInfo.RawErrno) : 152new IOException(SR.IO_SharingViolation_NoFileName, errorInfo.RawErrno); 158return new ArgumentOutOfRangeException("value", SR.ArgumentOutOfRange_FileLengthTooBig); 163return new IOException(SR.Format(SR.IO_FileExists_Name, path), errorInfo.RawErrno);
System\IO\Error.cs (6)
11return new EndOfStreamException(SR.IO_EOF_ReadBeyondEOF); 16return new ObjectDisposedException(null, SR.ObjectDisposed_PipeClosed); 21return new NotSupportedException(SR.NotSupported_UnreadableStream); 26return new NotSupportedException(SR.NotSupported_UnseekableStream); 31return new NotSupportedException(SR.NotSupported_UnwritableStream); 36return new IOException(SR.IO_OperationAborted_Unexpected);
System\IO\Pipes\AnonymousPipeClientStream.cs (7)
25throw new NotSupportedException(SR.NotSupported_AnonymousPipeUnidirectional); 33throw new ArgumentException(SR.Argument_InvalidHandle, nameof(pipeHandleAsString)); 41throw new ArgumentException(SR.Argument_InvalidHandle, nameof(pipeHandleAsString)); 52throw new NotSupportedException(SR.NotSupported_AnonymousPipeUnidirectional); 57throw new ArgumentException(SR.Argument_InvalidHandle, nameof(safePipeHandle)); 93throw new ArgumentOutOfRangeException(nameof(value), SR.ArgumentOutOfRange_TransmissionModeByteOrMsg); 97throw new NotSupportedException(SR.NotSupported_AnonymousPipeMessagesNotSupported);
System\IO\Pipes\AnonymousPipeServerStream.cs (7)
38throw new NotSupportedException(SR.NotSupported_AnonymousPipeUnidirectional); 45throw new ArgumentException(SR.Argument_InvalidHandle, nameof(serverSafePipeHandle)); 49throw new ArgumentException(SR.Argument_InvalidHandle, nameof(clientSafePipeHandle)); 68throw new NotSupportedException(SR.NotSupported_AnonymousPipeUnidirectional); 72throw new ArgumentOutOfRangeException(nameof(inheritability), SR.ArgumentOutOfRange_HandleInheritabilityNoneOrInheritable); 152throw new ArgumentOutOfRangeException(nameof(value), SR.ArgumentOutOfRange_TransmissionModeByteOrMsg); 156throw new NotSupportedException(SR.NotSupported_AnonymousPipeMessagesNotSupported);
System\IO\Pipes\NamedPipeClientStream.cs (8)
65throw new ArgumentException(SR.Argument_EmptyServerName); 69throw new ArgumentOutOfRangeException(nameof(options), SR.ArgumentOutOfRange_OptionsInvalid); 73throw new ArgumentOutOfRangeException(nameof(impersonationLevel), SR.ArgumentOutOfRange_ImpersonationInvalid); 77throw new ArgumentOutOfRangeException(nameof(inheritability), SR.ArgumentOutOfRange_HandleInheritabilityNoneOrInheritable); 106throw new ArgumentException(SR.Argument_InvalidHandle, nameof(safePipeHandle)); 224throw new InvalidOperationException(SR.InvalidOperation_PipeNotYetConnected); 228throw new IOException(SR.IO_PipeBroken); 237throw new InvalidOperationException(SR.InvalidOperation_PipeAlreadyConnected);
System\IO\Pipes\NamedPipeClientStream.Unix.cs (4)
27throw new PlatformNotSupportedException(SR.PlatformNotSupported_PipeAccessRights); 96if (!CanRead) throw new NotSupportedException(SR.NotSupported_UnreadableStream); 106if (!CanWrite) throw new NotSupportedException(SR.NotSupported_UnwritableStream); 124throw new UnauthorizedAccessException(SR.UnauthorizedAccess_NotOwnedByCurrentUser);
System\IO\Pipes\NamedPipeServerStream.cs (10)
98throw new ArgumentOutOfRangeException(nameof(direction), SR.ArgumentOutOfRange_DirectionModeInOutOrInOut); 102throw new ArgumentOutOfRangeException(nameof(transmissionMode), SR.ArgumentOutOfRange_TransmissionModeByteOrMsg); 106throw new ArgumentOutOfRangeException(nameof(options), SR.ArgumentOutOfRange_OptionsInvalid); 115throw new ArgumentOutOfRangeException(nameof(maxNumberOfServerInstances), SR.ArgumentOutOfRange_MaxNumServerInstances); 123throw new ArgumentOutOfRangeException(nameof(inheritability), SR.ArgumentOutOfRange_HandleInheritabilityNoneOrInheritable); 140throw new ArgumentException(SR.Argument_InvalidHandle, nameof(safePipeHandle)); 185throw new IOException(SR.IO_PipeBroken); 194throw new InvalidOperationException(SR.InvalidOperation_PipeNotYetConnected); 198throw new InvalidOperationException(SR.InvalidOperation_PipeAlreadyDisconnected); 202throw new InvalidOperationException(SR.InvalidOperation_PipeHandleNotSet);
System\IO\Pipes\NamedPipeServerStream.Unix.cs (15)
37throw new PlatformNotSupportedException(SR.PlatformNotSupported_MessageTransmissionMode); 59throw new InvalidOperationException(SR.InvalidOperation_PipeAlreadyConnected); 73throw new InvalidOperationException(SR.InvalidOperation_PipeAlreadyConnected); 90throw new IOException(SR.IO_PipeBroken); 119throw new UnauthorizedAccessException(SR.Format(SR.UnauthorizedAccess_ClientIsNotCurrentUser, peerID, serverEUID)); 164throw new InvalidOperationException(SR.InvalidOperation_PipeHandleNotSet); 181if (!CanRead) throw new NotSupportedException(SR.NotSupported_UnreadableStream); 191if (!CanWrite) throw new NotSupportedException(SR.NotSupported_UnwritableStream); 203throw new InvalidOperationException(SR.InvalidOperation_PipeHandleNotSet); 266throw new IOException(SR.IO_AllPipeInstancesAreBusy); 270throw new UnauthorizedAccessException(SR.Format(SR.UnauthorizedAccess_IODenied_Path, path)); 333throw new UnauthorizedAccessException(SR.Format(SR.UnauthorizedAccess_IODenied_Path, path));
System\IO\Pipes\PipeStream.cs (16)
35throw new ArgumentOutOfRangeException(nameof(direction), SR.ArgumentOutOfRange_DirectionModeInOutOrInOut); 46throw new ArgumentOutOfRangeException(nameof(direction), SR.ArgumentOutOfRange_DirectionModeInOutOrInOut); 50throw new ArgumentOutOfRangeException(nameof(transmissionMode), SR.ArgumentOutOfRange_TransmissionModeByteOrMsg); 200throw new InvalidOperationException(SR.InvalidOperation_PipeNotYetConnected); 204throw new InvalidOperationException(SR.InvalidOperation_PipeDisconnected); 208throw new InvalidOperationException(SR.InvalidOperation_PipeHandleNotSet); 219throw new InvalidOperationException(SR.InvalidOperation_PipeReadModeNotMessage); 239throw new InvalidOperationException(SR.InvalidOperation_PipeHandleNotSet); 327throw new InvalidOperationException(SR.InvalidOperation_PipeHandleNotSet); 344throw new InvalidOperationException(SR.InvalidOperation_PipeNotYetConnected); 348throw new InvalidOperationException(SR.InvalidOperation_PipeDisconnected); 352throw new InvalidOperationException(SR.InvalidOperation_PipeHandleNotSet); 368throw new InvalidOperationException(SR.InvalidOperation_PipeNotYetConnected); 372throw new InvalidOperationException(SR.InvalidOperation_PipeDisconnected); 376throw new InvalidOperationException(SR.InvalidOperation_PipeHandleNotSet); 382throw new IOException(SR.IO_PipeBroken);
System\IO\Pipes\PipeStream.Unix.cs (11)
190throw new PlatformNotSupportedException(SR.PlatformNotSupported_RemotePipes); 196throw new ArgumentOutOfRangeException(nameof(pipeName), SR.ArgumentOutOfRange_AnonymousReserved); 206throw new PlatformNotSupportedException(SR.PlatformNotSupported_InvalidPipeNameChars); 214throw new PlatformNotSupportedException(SR.PlatformNotSupported_InvalidPipeNameChars); 241throw new IOException(SR.IO_InvalidPipeHandle); 378throw new NotSupportedException(SR.NotSupported_UnreadableStream); 395throw new NotSupportedException(SR.NotSupported_UnwritableStream); 413throw new ArgumentOutOfRangeException(nameof(value), SR.ArgumentOutOfRange_TransmissionModeByteOrMsg); 418throw new PlatformNotSupportedException(SR.PlatformNotSupported_MessageTransmissionMode); 524new PlatformNotSupportedException(SR.Format(SR.PlatformNotSupported_OperatingSystemError, nameof(Interop.Error.ENOTSUP))) :