Class CompositeFileErrorHandler
java.lang.Object
org.pentaho.di.trans.step.errorhandling.CompositeFileErrorHandler
- All Implemented Interfaces:
FileErrorHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()This method closes the handler;voidhandleFile(org.apache.commons.vfs2.FileObject file) Tells the handler which file is being processed.voidhandleLineError(long lineNr, String filePart) This method handles an error when processing the line with corresponding lineNr.voidhandleNonAccessibleFile(org.apache.commons.vfs2.FileObject file) This method handles a file that is required, but is not accessible.voidhandleNonExistantFile(org.apache.commons.vfs2.FileObject file) This method handles a file that is required, but does not exist.
-
Constructor Details
-
CompositeFileErrorHandler
-
-
Method Details
-
handleFile
public void handleFile(org.apache.commons.vfs2.FileObject file) throws org.pentaho.di.core.exception.KettleException Description copied from interface:FileErrorHandlerTells the handler which file is being processed.- Specified by:
handleFilein interfaceFileErrorHandler- Throws:
org.pentaho.di.core.exception.KettleException
-
handleLineError
public void handleLineError(long lineNr, String filePart) throws org.pentaho.di.core.exception.KettleException Description copied from interface:FileErrorHandlerThis method handles an error when processing the line with corresponding lineNr.- Specified by:
handleLineErrorin interfaceFileErrorHandlerfilePart- allows us to split error according to a filePart- Throws:
org.pentaho.di.core.exception.KettleException
-
close
public void close() throws org.pentaho.di.core.exception.KettleExceptionDescription copied from interface:FileErrorHandlerThis method closes the handler;- Specified by:
closein interfaceFileErrorHandler- Throws:
org.pentaho.di.core.exception.KettleException
-
handleNonExistantFile
public void handleNonExistantFile(org.apache.commons.vfs2.FileObject file) throws org.pentaho.di.core.exception.KettleException Description copied from interface:FileErrorHandlerThis method handles a file that is required, but does not exist.- Specified by:
handleNonExistantFilein interfaceFileErrorHandler- Throws:
org.pentaho.di.core.exception.KettleException
-
handleNonAccessibleFile
public void handleNonAccessibleFile(org.apache.commons.vfs2.FileObject file) throws org.pentaho.di.core.exception.KettleException Description copied from interface:FileErrorHandlerThis method handles a file that is required, but is not accessible.- Specified by:
handleNonAccessibleFilein interfaceFileErrorHandler- Throws:
org.pentaho.di.core.exception.KettleException
-