/// <summary>
 ///	Overloaded Constructor with two arguments for setting up Error code and session
 /// </summary>
 /// <param name="errCode">ErrorCode</param>
 /// <param name="sess">OFISession Object</param>
 public NandanaResult(NandanaError.ErrorType errCode, NandanaSession sess)
 {
     status    = StatusType.ERROR;
     errorCode = errCode;
     resultDS  = null;
     resultObj = null;
     session   = sess;
     NandanaError.PostError(this);
 }
 /// <summary>
 ///	Overloaded Constructor with three arguments for setting up Error code, Error Desc and session
 /// </summary>
 /// <param name="errCode">ErrorCode</param>
 /// <param name="errDesc">Error Description Object</param>
 /// <param name="sess">OFISession Object</param>
 public NandanaResult(NandanaError.ErrorType errCode, string errDesc, NandanaSession sess)
 {
     status    = StatusType.ERROR;
     errorCode = errCode;
     resultDS  = null;
     resultObj = null;
     session   = sess;
     // append the description to the existing one
     errorDescr += (null != errorDescr && 0 < errorDescr.Length && null != errDesc && 0 < errDesc.Length ? " : ":"") + errDesc;
     NandanaError.PostError(this);
 }
        /// <summary>
        ///	Overloaded Constructor with four arguments for setting up Error code, Error Desc, session and exception
        /// </summary>
        /// <param name="errCode">ErrorCode</param>
        /// <param name="errDesc">Error Description Object</param>
        /// <param name="sess">OFISession Object</param>
        /// <param name="exp">Exception Object</param>
        public NandanaResult(NandanaError.ErrorType errCode, string errDesc, NandanaSession sess, Exception exp)
        {
            status         = StatusType.ERROR;
            errorCode      = errCode;
            errorException = exp;
            resultDS       = null;
            resultObj      = null;
            session        = sess;
            // append the description to the existing one, set by IBCError object
            errorDescr += (null != errorDescr && 0 < errorDescr.Length && null != errDesc && 0 < errDesc.Length ? " : ":"") + errDesc;
            if (null != exp)
            {
#if (DEBUG)
                errorDescr += (null != errorDescr && 0 < errorDescr.Length ? " : ":"") + exp.ToString();
#else
                errorDescr += (null != errorDescr && 0 < errorDescr.Length ? " : ":"") + exp.Message;
#endif
            }
            NandanaError.PostError(this);
        }