Package org.hpccsystems.commons.errors
Class HpccErrorBlock
- java.lang.Object
-
- org.hpccsystems.commons.errors.HpccErrorBlock
-
public class HpccErrorBlock extends Object
Store a set of HpccErrorr.
-
-
Constructor Summary
Constructors Constructor Description HpccErrorBlock()Instantiates a new hpcc error block.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(HpccError err)Adds the.voidaddAll(HpccErrorBlock items)Adds the all.Set<HpccError>asSet()As set.voidclear()Clear.List<HpccError>getErrors()Gets the errors.List<HpccError>getErrors(IErrorCode st)Gets the errors.List<HpccError>getInfos()Gets the infos.List<HpccError>getItems(HpccErrorLevel errLevel, IErrorCode code)Gets the items.List<HpccError>getWarnings()Gets the warnings.booleanisEmpty()Checks if is empty.intsize()Size.StringtoEclIdeString()To ecl ide string.StringtoString()
-
-
-
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 returncode- - 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
-
isEmpty
public boolean isEmpty()
Checks if is empty.- Returns:
- true, if is empty
-
-