Class SegmentErrorDef
java.lang.Object
com.onenetwork.platform.common.ErrorDef
com.onenetwork.platform.integ.edi.EDIErrorDef
com.onenetwork.platform.integ.edi.SegmentErrorDef
- All Implemented Interfaces:
StatusMessage
public class SegmentErrorDef extends EDIErrorDef
This class captures EDI Segment errors
-
Field Summary
Fields inherited from class com.onenetwork.platform.integ.edi.EDIErrorDef
error, errorCode, errorPosition, name
-
Constructor Summary
Constructors Constructor Description SegmentErrorDef(java.lang.String segmentName, java.lang.String error, java.lang.String errorCode)
Instiate a SegmentErrorDef object with the name, error and errorCode specified. -
Method Summary
Modifier and Type Method Description <T extends FieldErrorDef>
voidaddFieldError(T fieldError)
Add field error to the existing list.<T extends FieldErrorDef>
java.util.List<T>getFieldErrors()
<T extends FieldErrorDef>
voidsetFieldErrors(java.util.List<T> fieldErrors)
Methods inherited from class com.onenetwork.platform.integ.edi.EDIErrorDef
getError, getErrorCode, getErrorPosition, getName, setError, setErrorCode, setErrorPosition, setName, toString
Methods inherited from class com.onenetwork.platform.common.ErrorDef
getArgs, getMajorCode, getMessage, getMinorCode, getValue, isSetMajorCode, isSetMinorCode, setMajorCode, setMinorCode, setValue
-
Constructor Details
-
SegmentErrorDef
public SegmentErrorDef(java.lang.String segmentName, java.lang.String error, java.lang.String errorCode)Instiate a SegmentErrorDef object with the name, error and errorCode specified.- Parameters:
segmentName
-error
-errorCode
-
-
-
Method Details
-
getFieldErrors
- Returns:
- the fieldErrors
-
setFieldErrors
- Parameters:
fieldErrors
- the fieldErrors to set
-
addFieldError
Add field error to the existing list.- Type Parameters:
T
-- Parameters:
fieldError
-
-