Class EDIErrorDef
java.lang.Object
com.onenetwork.platform.common.ErrorDef
com.onenetwork.platform.integ.edi.EDIErrorDef
- All Implemented Interfaces:
StatusMessage
- Direct Known Subclasses:
FieldErrorDef
,SegmentErrorDef
,TransactionErrorDef
public class EDIErrorDef extends ErrorDef
This class captures EDI errors
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
error
protected java.lang.String
errorCode
protected int
errorPosition
protected java.lang.String
name
-
Constructor Summary
Constructors Constructor Description EDIErrorDef(java.lang.String name, java.lang.String error, java.lang.String errorCode)
Instantiate an EDIErrorDef object by specifying the name, error and error code -
Method Summary
Modifier and Type Method Description java.lang.String
getError()
java.lang.String
getErrorCode()
int
getErrorPosition()
java.lang.String
getName()
void
setError(java.lang.String error)
void
setErrorCode(java.lang.String errorCode)
void
setErrorPosition(int errorPosition)
void
setName(java.lang.String name)
java.lang.String
toString()
Methods inherited from class com.onenetwork.platform.common.ErrorDef
getArgs, getMajorCode, getMessage, getMinorCode, getValue, isSetMajorCode, isSetMinorCode, setMajorCode, setMinorCode, setValue
-
Field Details
-
name
protected java.lang.String name -
error
protected java.lang.String error -
errorCode
protected java.lang.String errorCode -
errorPosition
protected int errorPosition
-
-
Constructor Details
-
EDIErrorDef
public EDIErrorDef(java.lang.String name, java.lang.String error, java.lang.String errorCode)Instantiate an EDIErrorDef object by specifying the name, error and error code- Parameters:
name
-error
-errorCode
-
-
-
Method Details
-
getName
public java.lang.String getName()- Returns:
- the name
-
setName
public void setName(java.lang.String name)- Parameters:
name
- the name to set
-
getError
public java.lang.String getError()- Returns:
- the error
-
setError
public void setError(java.lang.String error)- Parameters:
error
- the error to set
-
getErrorCode
public java.lang.String getErrorCode()- Returns:
- the errorCode
-
setErrorCode
public void setErrorCode(java.lang.String errorCode)- Parameters:
errorCode
- the errorCode to set
-
getErrorPosition
public int getErrorPosition()- Returns:
- the errorPosition
-
setErrorPosition
public void setErrorPosition(int errorPosition)- Parameters:
errorPosition
- the errorPosition to set
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-