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:
java.io.Serializable
public class ImportError extends DataImportError
Describes error that has happened during the import process.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ImportError()ImportError(java.lang.String type, java.lang.String line, java.lang.String msg)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImportErrorcreate(ImpExError error)static ImportErrorcreate(java.lang.String line, java.lang.String msg)Creates an error.java.lang.LonggetCanonicalItemId()Retrieves ID of the item that failed to import.java.lang.StringgetItemType()Determines type of the item that failed to import.java.lang.StringgetScriptLine()Retrieves the line of the impex script, which resulted in this errorjava.lang.StringtoString()-
Methods inherited from class de.hybris.platform.dataimportcommons.facades.DataImportError
getCode, getMessage
-
-
-
-
Method Detail
-
create
public static ImportError create(ImpExError error)
-
create
public static ImportError create(java.lang.String line, java.lang.String msg)
Creates an error.- Parameters:
line- rejected impex script linemsg- 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.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classDataImportError
-
-