Exemplo n.º 1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="innerException"></param>
 /// <param name="errorCode"></param>
 /// <param name="priority"></param>
 /// <param name="messageProvider"></param>
 public PxException(Exception innerException, string errorCode, ErrorPriority priority, IPxErrorMessageProvider messageProvider) : base(null, innerException)
 {
     this.messageProvider = messageProvider;
     ErrorCode            = errorCode;
     if (innerException == null)
     {
         this.Priority = priority;
     }
     else if (innerException is PxException)
     {
         PxException ex = innerException as PxException;
         this.Priority = ex.Priority;
     }
     else
     {
         this.Priority = ErrorPriority.High;
     }
 }