Class HpccErrorBlock


  • public class HpccErrorBlock
    extends Object
    Store a set of HpccErrorr.
    • Constructor Detail

      • HpccErrorBlock

        public HpccErrorBlock()
        Instantiates a new hpcc error block.
    • Method Detail

      • addAll

        public void addAll​(HpccErrorBlock items)
        Adds the all.
        Parameters:
        items - the items
      • getErrors

        public List<HpccError> getErrors​(IErrorCode st)
        Gets the errors.
        Parameters:
        st - ErrorCode of errors to retrieve
        Returns:
        HError objects with ErrorLevel=ERROR or ErrorLevel=FATAL containing the specified error code
      • getErrors

        public List<HpccError> getErrors()
        Gets the errors.
        Returns:
        HError objects with ErrorLevel=ERROR or ErrorLevel=FATAL
      • getWarnings

        public List<HpccError> getWarnings()
        Gets the warnings.
        Returns:
        All HError objects of ErrorLevel WARNING
      • getInfos

        public List<HpccError> getInfos()
        Gets the infos.
        Returns:
        All HError objects with ErrorLevel INFO
      • getItems

        public List<HpccError> getItems​(HpccErrorLevel errLevel,
                                        IErrorCode code)
        Gets the items.
        Parameters:
        errLevel - - Level of HErrors to return
        code - - ErrorCode of HErrors to Return
        Returns:
        - HError objects matching the input parameters
      • add

        public void add​(HpccError err)
        Adds the.
        Parameters:
        err - error to add
      • toEclIdeString

        public String toEclIdeString()
        To ecl ide string.
        Returns:
        A collection of HErrors with ErrorLevel=ERROR/FATAL in ecl error format. filename(linenum,colnum):ErrorLevel ErrorCode.getNumVal():Error String
      • clear

        public void clear()
        Clear.
      • size

        public int size()
        Size.
        Returns:
        the int
      • asSet

        public Set<HpccError> asSet()
        As set.
        Returns:
        the sets the
      • isEmpty

        public boolean isEmpty()
        Checks if is empty.
        Returns:
        true, if is empty