% TaskError - Used for formatting the error message in the Task display

% Copyright 2012-2013 The MathWorks, Inc.

classdef (Hidden) TaskError < parallel.internal.display.AbstractError
    properties (SetAccess = immutable, GetAccess = private)
        Parent
    end

    methods
        function obj = TaskError(displayHelper, error, parent)
            obj@parallel.internal.display.AbstractError(displayHelper, error);
            obj.Parent = parent;
        end
    end
    methods (Access = protected)
        function list = listAttachedFilesAndPaths(obj)
            list = [obj.Parent.AttachedFiles; obj.Parent.AdditionalPaths];
        end
    end
end
