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 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 class java.lang.Object