Example #1
0
        public ExecutionFailureInfo(
            string type,
            string message,
            ExecutionFailureInfo cause,
            IEnumerable <ExecutionFailureInfo> suppressed,
            IEnumerable <string> stack,
            ErrorLocation errorLocation,
            ErrorCode errorCode,
            HostAddress remoteHost
            )
        {
            if (String.IsNullOrEmpty(type))
            {
                throw new ArgumentNullException("type", "The type cannot be null or empty.");
            }

            this.Type          = type;
            this.Message       = message;
            this.Cause         = cause;
            this.Suppressed    = suppressed ?? throw new ArgumentNullException("suppressed", "Suppressed cannot be null.");
            this.Stack         = stack ?? throw new ArgumentNullException("stack", "Stack cannot be null.");
            this.ErrorLocation = errorLocation;
            this.ErrorCode     = errorCode;
            this.RemoteHost    = remoteHost;
        }
Example #2
0
 public StageInfo(
     StageId stageId,
     StageState state,
     Uri self,
     PlanFragment plan,
     IEnumerable <string> types,
     StageStats stageStats,
     IEnumerable <TaskInfo> tasks,
     IEnumerable <StageInfo> subStages,
     ExecutionFailureInfo failureCause
     )
 {
     this.StageId      = stageId ?? throw new ArgumentNullException("stageId");
     this.State        = state;
     this.Self         = self ?? throw new ArgumentNullException("self");
     this.Plan         = plan;
     this.Types        = types;
     this.StageStats   = stageStats ?? throw new ArgumentNullException("stageStats");
     this.Tasks        = tasks ?? throw new ArgumentNullException("tasks");
     this.SubStages    = subStages ?? throw new ArgumentNullException("subStages");
     this.FailureCause = failureCause;
 }