Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
 public static NetMQException Create([NotNull] SocketException innerException)
 {
     return(NetMQException.Create(innerException.SocketErrorCode, innerException));
 }
Exemplo n.º 3
0
 public static NetMQException Create([CanBeNull] string message, ErrorCode errorCode)
 {
     return(NetMQException.Create(errorCode, message, null));
 }
Exemplo n.º 4
0
 public static NetMQException Create(ErrorCode errorCode)
 {
     return(NetMQException.Create(null, errorCode));
 }
Exemplo n.º 5
0
 public static NetMQException Create(ErrorCode errorCode, [CanBeNull] Exception innerException)
 {
     return(NetMQException.Create(errorCode, null, innerException));
 }