Class ImportError

All Implemented Interfaces:
Serializable

public class ImportError extends DataImportError
Describes error that has happened during the import process.
See Also:
  • Constructor Details

    • ImportError

      public ImportError()
    • ImportError

      public ImportError(String type, String line, String msg)
  • Method Details

    • create

      public static ImportError create(ImpExError error)
    • create

      public static ImportError create(String line, String msg)
      Creates an error.
      Parameters:
      line - rejected impex script line
      msg - an error message explaining the problem
      Returns:
      new instance of the error
    • getCanonicalItemId

      public Long getCanonicalItemId()
      Retrieves ID of the item that failed to import.
      Returns:
      item ID or null, if the error code indicates an impex header error.
    • getItemType

      public String getItemType()
      Determines type of the item that failed to import.
      Returns:
      item type
    • getScriptLine

      public String getScriptLine()
      Retrieves the line of the impex script, which resulted in this error
      Returns:
      line of the impex script that was rejected by the import.
    • toString

      public String toString()
      Overrides:
      toString in class DataImportError