Skip to content

Commit daa47c7

Browse files
committed
Fixes non-blocking IO operations
1 parent 29af8e1 commit daa47c7

File tree

6 files changed

+12955
-12907
lines changed

6 files changed

+12955
-12907
lines changed

Languages/Ruby/Libraries/Builtins/Errno.cs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,22 @@ protected InvalidSeekError(System.Runtime.Serialization.SerializationInfo info,
216216

217217
// TODO: generate
218218

219+
[RubyClass("EWOULDBLOCK"), Serializable]
220+
public class WouldBlockError : ExternalException {
221+
private const string/*!*/ M = "A non-blocking socket operation could not be completed immediately.";
222+
public override int ErrorCode { get { return 10035; } }
223+
224+
public WouldBlockError() : this(null, null) { }
225+
public WouldBlockError(string message) : this(message, null) { }
226+
public WouldBlockError(string message, Exception inner) : base(RubyExceptions.MakeMessage(message, M), inner) { }
227+
public WouldBlockError(MutableString message) : base(RubyExceptions.MakeMessage(ref message, M)) { RubyExceptionData.InitializeException(this, message); }
228+
229+
#if !SILVERLIGHT
230+
protected WouldBlockError(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
231+
: base(info, context) { }
232+
#endif
233+
}
234+
219235
[RubyClass("EADDRINUSE"), Serializable]
220236
public class AddressInUseError : ExternalException {
221237
private const string/*!*/ M = "Only one usage of each socket address (protocol/network address/port) is normally permitted.";

0 commit comments

Comments
 (0)