Example #1
0
 private void InitOption(MailStatus status, MailCause cause)
 {
     this.mStatus = status;
     this.mCause = cause;
     this.mSocketErrorCode = 0;
     this.mSocketErrorCodeType = SocketError.Success;
 }
Example #2
0
 public MailExceptionEx(MailStatus status, MailCause cause, string message)
 {
     this.InitOption(status, cause);
     try
     {
         Exception exception = new Exception(message);
         throw exception;
     }
     catch (Exception exception2)
     {
         this.mException = exception2;
     }
 }
Example #3
0
 public MailExceptionEx(MailStatus status, MailCause cause, object baseException)
 {
     this.InitOption(status, cause);
     if (baseException.GetType() == typeof(TimeoutException))
     {
         this.mException = ((TimeoutException) baseException).GetBaseException();
     }
     else if (baseException.GetType() == typeof(SocketException))
     {
         this.mException = (SocketException) baseException;
         this.mSocketErrorCode = ((SocketException) baseException).ErrorCode;
         this.mSocketErrorCodeType = ((SocketException) baseException).SocketErrorCode;
     }
     else
     {
         this.mException = (Exception) baseException;
     }
 }