/// <summary> /// Cria uma instancia com os dados iniciais. /// </summary> /// <param name="message"></param> /// <param name="stackTrace"></param> /// <param name="innerException"></param> public CommunicationExceptionDetails(string message, string stackTrace, Exception innerException) { this.Message = message; this.StackTrace = stackTrace; if (innerException != null) { this.InnerException = new CommunicationExceptionDetails(message, innerException.StackTrace, innerException.InnerException); } }
/// <summary> /// Cria a instancia com os dados do detalhe. /// </summary> /// <param name="details"></param> public DownloaderException(CommunicationExceptionDetails details) : base(details != null ? details.Message : null, details.InnerException != null ? new DownloaderException(details.InnerException) : null) { _details = details; }