Class EDI824ErrorDef
java.lang.Object
com.onenetwork.platform.common.ErrorDef
com.onenetwork.platform.integ.edi.EDI824ErrorDef
- All Implemented Interfaces:
StatusMessage
public class EDI824ErrorDef extends ErrorDef
A type of ErrorDef which is exclusively used to capture the error details for EDI 824.
The EDI824ErrorDef object is used to build the 824 transaction set containing the details of the business error
and the parent transaction for which the business error occured.
-
Constructor Summary
Constructors Constructor Description EDI824ErrorDef(EDIEnvelopeInfo parentEdiEnvelopeInfo, java.lang.String parentTransactionSetCtrlNo)
-
Method Summary
Modifier and Type Method Description <T extends TransactionErrorDef>
voidaddTransactionError(T transactionError)
EDIEnvelopeInfo
getParentEdiEnvelopeInfo()
java.lang.String
getParentfunctionalGroupId()
java.lang.String
getParentTransactionSetCtrlNo()
java.lang.String
getParentTransactionSetId()
<T extends TransactionErrorDef>
java.util.List<T>getTransactionErrors()
void
setParentEdiEnvelopeInfo(EDIEnvelopeInfo parentEdiEnvelopeInfo)
void
setParentfunctionalGroupId(java.lang.String parentfunctionalGroupId)
void
setParentTransactionSetId(java.lang.String parentTransactionSetId)
java.lang.String
toString()
Methods inherited from class com.onenetwork.platform.common.ErrorDef
getArgs, getMajorCode, getMessage, getMinorCode, getValue, isSetMajorCode, isSetMinorCode, setMajorCode, setMinorCode, setValue
-
Constructor Details
-
EDI824ErrorDef
public EDI824ErrorDef(EDIEnvelopeInfo parentEdiEnvelopeInfo, java.lang.String parentTransactionSetCtrlNo)
-
-
Method Details
-
getParentEdiEnvelopeInfo
- Returns:
- the parentEdiEnvelopeInfo - the parent EDIEnvelope object consisting of delimiters , control numbers information for the parent envelope for which 824 is generated.
-
getParentTransactionSetCtrlNo
public java.lang.String getParentTransactionSetCtrlNo()- Returns:
- the parentTransactionSetCtrlNo - the transactionSet control number for the parent transaction for which the 824 is generated.
-
getParentTransactionSetId
public java.lang.String getParentTransactionSetId()- Returns:
- the parentTransactionSetId - the transactionSet id for the parent transaction set for which 824 is generated. For example: 855, 856, 810, etc
-
getParentfunctionalGroupId
public java.lang.String getParentfunctionalGroupId()- Returns:
- the parentfunctionalGroupId - the functional group id for the parent transaction set for which 824 is generated. Ex. IN, PO, SH, etc
-
setParentTransactionSetId
public void setParentTransactionSetId(java.lang.String parentTransactionSetId)- Parameters:
parentTransactionSetId
- the parentTransactionSetId to set
-
getTransactionErrors
- Returns:
- the transactionErrors - Each TransactionErrorDef object which consists of the transaction errors which are of 2 types 1. Field errors - Field data is incorrect or not present Ex. Mandatory element is blank 2. Segment errors - If a particular segment is missing or has some missing field or other such segment error
-
setParentfunctionalGroupId
public void setParentfunctionalGroupId(java.lang.String parentfunctionalGroupId)- Parameters:
parentfunctionalGroupId
- the parentfunctionalGroupId to set
-
addTransactionError
- Parameters:
transactionError
- - Adds a TransactionError to a list of transactionErrors
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
setParentEdiEnvelopeInfo
- Parameters:
parentEdiEnvelopeInfo
- the parentEdiEnvelopeInfo to set
-