/// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="appId">     Identifier for the application. </param>
 /// <param name="exception"> The exception. </param>
 public HandledException(
     string appId,
     Dictionary <string, string> metadata,
     UserBreadcrumbs breadcrumbs,
     List <Endpoint> endpoints,
     List <Breadcrumb> systemBreadcrumbs,
     ExceptionObject exception)
 {
     app_id                 = appId;
     app_state              = ComputeLegacyAppState();
     error                  = exception;
     this.metadata          = metadata;
     this.breadcrumbs       = breadcrumbs;
     this.endpoints         = endpoints;
     this.systemBreadcrumbs = systemBreadcrumbs;
     platform               = new Platform();
 }
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="appId">Identifier for the application.</param>
 /// <param name="currentBreadcrumbs">The current breadcrumbs.</param>
 /// <param name="exception">The exception.</param>
 public CrashReport(
     string appId,
     Dictionary <string, string> metadata,
     UserBreadcrumbs breadcrumbs,
     List <Endpoint> endpoints,
     List <Breadcrumb> systemBreadcrumbs,
     List <Userflow> userflows,
     ExceptionObject exception)
 {
     app_id                 = appId;
     app_state              = ComputeLegacyAppState();
     this.metadata          = metadata;
     this.breadcrumbs       = breadcrumbs;
     this.endpoints         = endpoints;
     this.systemBreadcrumbs = systemBreadcrumbs;
     this.transactions      = userflows;
     crash    = exception;
     platform = new Platform();
 }