Example #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="CognizantException" /> class with the specified error message
        /// and a reference to the inner exception that is the cause of this exception.
        /// </summary>
        protected CognizantException(ExceptionInformation exceptionInformation, string message, Exception innerException)
            : base(message, innerException)
        {
            ArgumentValidator.ThrowIfNull(exceptionInformation, "exceptionInformation");

            m_exceptionInformation = exceptionInformation;
        }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CognizantException" /> class with serialized data.
 /// </summary>
 protected CognizantException(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     if (info != null) {
         m_exceptionInformation	= (ExceptionInformation) info.GetValue("m_exceptionInformation", typeof(ExceptionInformation));
     }
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="CognizantException" /> class with the specified error message
        /// and a reference to the inner exception that is the cause of this exception.
        /// </summary>
        protected CognizantException(ExceptionInformation exceptionInformation, string message, Exception innerException)
            : base(message, innerException)
        {
            ArgumentValidator.ThrowIfNull(exceptionInformation, "exceptionInformation");

            m_exceptionInformation = exceptionInformation;
        }
Example #4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="CognizantException" /> class with a specified error message.
        /// </summary>
        public CognizantException(ExceptionInformation exceptionInformation, string message) : base(message)
        {
            ArgumentValidator.ThrowIfNull(exceptionInformation, "exceptionInformation");

            m_exceptionInformation = exceptionInformation;
        }