Package com.hybris.datahub.core.facades
Class ImportError
java.lang.Object
de.hybris.platform.dataimportcommons.facades.DataImportError
com.hybris.datahub.core.facades.ImportError
- All Implemented Interfaces:
Serializable
Describes error that has happened during the import process.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ImportErrorcreate(ImpExError error) static ImportErrorCreates an error.Retrieves ID of the item that failed to import.Determines type of the item that failed to import.Retrieves the line of the impex script, which resulted in this errortoString()Methods inherited from class de.hybris.platform.dataimportcommons.facades.DataImportError
getCode, getMessage
-
Constructor Details
-
ImportError
public ImportError() -
ImportError
-
-
Method Details
-
create
-
create
Creates an error.- Parameters:
line- rejected impex script linemsg- an error message explaining the problem- Returns:
- new instance of the error
-
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
Determines type of the item that failed to import.- Returns:
- item type
-
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
- Overrides:
toStringin classDataImportError
-