Example #1
0
        /// <summary>
        /// Constructor that receives a string message describing the exception,
        /// the originating exception, and a <see cref="DataTransferObject"/>.  This is used when replacing a
        /// non-MNException with an MNException; extends ApplicationException(string, Exception).
        /// </summary>
        /// <param name="message">The exception message</param>
        /// <param name="innerException">The exception that was caught</param>
        /// <param name="dto"><see cref="DataTransferObject"/> that is relevant to the
        ///	application code causing the exception</param>
        public MNException(String message, Exception innerException, DataTransferObject dto)
            : base(message, innerException)
        {
            //Assign passed DataTransferObject to local DataTransferObject
            _dto = dto;

            //Assign any message trace data
            AddMessageTraceData(innerException.Message);
        }
Example #2
0
 /// <summary>
 /// Constructor that receives a string message describing the fatal exception, the originating exception,
 /// and a <see cref="DataTransferObject"/>.  This is used when replacing a non-MNException with a
 /// MNFatalException; extends MNException(string, Exception, DataTransferObject).
 /// </summary>
 /// <param name="message">The fatal exception message</param>
 /// <param name="innerException">The fatal exception that was caught</param>
 /// <param name="dto"><see cref="DataTransferObject"/> that is relevant to the
 ///	application code causing the fatal exception</param>
 public MNFatalException(String message, Exception innerException, DataTransferObject dto)
     : base(message, innerException, dto)
 {
 }
Example #3
0
 /// <summary>
 /// Constructor that receives a <see cref="DataTransferObject"/>; extends MNException(DataTransferObject).
 /// </summary>
 /// <param name="dto"><see cref="DataTransferObject"/> that is relevant to the
 ///	application code causing the fatal exception</param>
 public MNFatalException(DataTransferObject dto)
     : base(dto)
 {
 }
Example #4
0
 /// <summary>
 /// Constructor that receives a string message describing the nonfatal exception,
 /// and a <see cref="DataTransferObject"/>; extends MNException(string, DataTransferObject).
 /// </summary>
 /// <param name="message">The nonfatal exception message</param>
 /// <param name="dto"><see cref="DataTransferObject"/> that is relevant to the
 ///	application code causing the nonfatal exception</param>
 public MNNonFatalException(String message, DataTransferObject dto)
     : base(message, dto)
 {
 }
Example #5
0
 /// <summary>
 /// Constructor that receives a <see cref="DataTransferObject"/> and
 /// a <see cref="LogLevel"/>; extends ApplicationException().
 /// </summary>
 /// <param name="dto"><see cref="DataTransferObject"/> that is relevant to the
 ///	application code causing the exception</param>
 public MNException(DataTransferObject dto)
     : base()
 {
     //Assign passed DataTransferObject to local DataTransferObject
     _dto = dto;
 }
Example #6
0
 /// <summary>
 /// Constructor that receives a string message describing the exception
 /// and a <see cref="DataTransferObject"/>; extends ApplicationException(string).
 /// </summary>
 /// <param name="message">The exception message</param>
 /// <param name="dto"><see cref="DataTransferObject"/> that is relevant to the
 ///	application code causing the exception</param>
 public MNException(String message, DataTransferObject dto)
     : base(message)
 {
     //Assign passed DataTransferObject to local DataTransferObject
     _dto = dto;
 }