Example #1
0
 /// <summary>
 /// ���캯��(��Դ�쳣�������Ϣ)
 /// </summary>
 /// <param name="innerException">Դ�쳣����</param>
 /// <param name="message">������Ϣ</param>
 /// <param name="level">�쳣����</param>
 public CommonException(string message, Exception innerException, CommonDeclare.EnumExceptionLevel level)
     : base(message, innerException)
 {
     errorLevel = level;
 }
Example #2
0
 /// <summary>
 /// ʹ�ô�����Ϣ����һ��<see cref="CommonException"/>ʵ����
 /// </summary>
 /// <param name="message">������Ϣ</param>
 /// <param name="level">�쳣����</param>
 /// <param name="errorCode">�������</param>
 public CommonException(string message, CommonDeclare.EnumExceptionLevel level, string errorCode)
     : base(message)
 {
     errorLevel = level;
     this.errorCode = errorCode;
 }
Example #3
0
 /// <summary>
 /// ʹ��Դ�쳣����һ��<see cref="CommonException"/>ʵ����
 /// </summary>
 /// <param name="innerException">Դ�쳣����</param>
 /// <param name="level">�쳣����</param>
 public CommonException(Exception innerException, CommonDeclare.EnumExceptionLevel level)
     : base(innerException.Message, innerException)
 {
     errorLevel = level;
 }
Example #4
0
 /// <summary>
 /// ʹ�ô�����Ϣ�ʹ����뽨��һ��<see cref="CommonException"/>ʵ��
 /// ������Դ�쳣        /// </summary>
 /// <param name="innerException">Դ�쳣</param>
 /// <param name="level">���󼶱�</param>
 /// <param name="errorCode">�쳣����</param>
 public CommonException(Exception innerException, CommonDeclare.EnumExceptionLevel level, string errorCode)
     : base(string.Empty, innerException)
 {
     errorLevel = level;
     this.errorCode = errorCode;
 }