Apache.NMS.Util.NMSExceptionSupport.Create C# (CSharp) Метод

Create() публичный статический Метод

public static Create ( Exception cause ) : NMSException
cause System.Exception
Результат NMSException
        public static NMSException Create(Exception cause)
        {
            if(cause is NMSException)
            {
                return (NMSException) cause;
            }
            string msg = cause.Message;
            if(msg == null || msg.Length == 0)
            {
                msg = cause.ToString();
            }
            NMSException exception = new NMSException(msg, cause);
            return exception;
        }

Same methods

NMSExceptionSupport::Create ( string message, Exception cause ) : NMSException
NMSExceptionSupport::Create ( string message, string errorCode, Exception cause ) : NMSException