Package net.snowflake.client.loader
Class LoadingError
- java.lang.Object
-
- net.snowflake.client.loader.LoadingError
-
public class LoadingError extends Object
Wrapper for data format errors returned by the COPY/validate command
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLoadingError.ErrorProperty
-
Constructor Summary
Constructors Constructor Description LoadingError(ResultSet rs, BufferStage bs, StreamLoader loader)Construct error from validation output
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Loader.DataErrorgetException()StringgetFile()StringgetPrefix()StringgetProperty(LoadingError.ErrorProperty p)StringgetStage()StringgetTarget()voidsetProperty(LoadingError.ErrorProperty p, String value)StringtoString()
-
-
-
Field Detail
-
UNKNOWN
public static String UNKNOWN
-
-
Constructor Detail
-
LoadingError
public LoadingError(ResultSet rs, BufferStage bs, StreamLoader loader)
Construct error from validation output- Parameters:
rs- result setbs- buffer stageloader- stream loader
-
-
Method Detail
-
getStage
public String getStage()
-
getPrefix
public String getPrefix()
-
getFile
public String getFile()
-
getTarget
public String getTarget()
-
getProperty
public String getProperty(LoadingError.ErrorProperty p)
-
setProperty
public void setProperty(LoadingError.ErrorProperty p, String value)
-
getException
public Loader.DataError getException()
-
-