public static NetMQException Create(SocketError error, [CanBeNull] Exception innerException = null) { ErrorCode errorCode = error.ToErrorCode(); #if DEBUG if (errorCode == 0) { string s = $"(And within NetMQException.Create: Unanticipated error-code: {error.ToString()})"; return(NetMQException.Create(errorCode, s, innerException)); } #endif return(NetMQException.Create(errorCode, innerException)); }
public static NetMQException Create([NotNull] SocketException innerException) { return(NetMQException.Create(innerException.SocketErrorCode, innerException)); }
public static NetMQException Create([CanBeNull] string message, ErrorCode errorCode) { return(NetMQException.Create(errorCode, message, null)); }
public static NetMQException Create(ErrorCode errorCode) { return(NetMQException.Create(null, errorCode)); }
public static NetMQException Create(ErrorCode errorCode, [CanBeNull] Exception innerException) { return(NetMQException.Create(errorCode, null, innerException)); }