Class ImportError

  • All Implemented Interfaces:
    java.io.Serializable

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

      • ImportError

        public ImportError()
      • ImportError

        public ImportError​(java.lang.String type,
                           java.lang.String line,
                           java.lang.String msg)
    • Method Detail

      • create

        public static ImportError create​(java.lang.String line,
                                         java.lang.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 java.lang.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 java.lang.String getItemType()
        Determines type of the item that failed to import.
        Returns:
        item type
      • getScriptLine

        public java.lang.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.