Exemple #1
0
 public string ParseException(Exception exception)
 {
     if (exception is DSWSException)
     {
         DSWSException dswsex = exception as DSWSException;
         return(dswsex.CauseMessage);
     }
     else
     {
         return(Func.ParseException(exception, "  "));
     }
 }
Exemple #2
0
 protected Exception CustomException(string message, Exception exception)
 {
     if (exception is DSWSException)
     {
         DSWSException ex = exception as DSWSException;
         return(new Exception(message + "\r" + ex.CauseMessage + "\r" + ex.Message));
     }
     else
     {
         return(new Exception(message + '\r' + exception.Message));
     }
 }
Exemple #3
0
 public Exception ParseException(string message, Exception exception)
 {
     if (exception is DSWSException)
     {
         DSWSException dswsex = exception as DSWSException;
         return(new Exception(message, new Exception(dswsex.CauseMessage)));
     }
     else
     {
         return(new Exception(message, exception));
     }
 }
Exemple #4
0
        protected string ReportException(Exception exception)
        {
            string message;

            if (exception is DSWSException)
            {
                DSWSException ex = exception as DSWSException;
                message = " EXCEPTION: " + ex.Message + ", " + ex.CauseMessage;
            }
            else
            {
                message = " EXCEPTION: " + exception.Message;
            }
            base.Log(message);
            return(message);
        }