File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/main/java/org/embulk/output/sftp Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 77import org .apache .commons .vfs2 .impl .StandardFileSystemManager ;
88import org .apache .commons .vfs2 .provider .sftp .IdentityInfo ;
99import org .apache .commons .vfs2 .provider .sftp .SftpFileSystemConfigBuilder ;
10+ import org .embulk .config .ConfigException ;
1011import org .embulk .config .TaskReport ;
1112import org .embulk .spi .Buffer ;
1213import org .embulk .spi .Exec ;
@@ -56,7 +57,7 @@ private StandardFileSystemManager initializeStandardFileSystemManager()
5657 }
5758 catch (FileSystemException e ) {
5859 logger .error (e .getMessage ());
59- throw new RuntimeException (e );
60+ throw new ConfigException (e );
6061 }
6162
6263 return manager ;
@@ -87,7 +88,7 @@ private FileSystemOptions initializeFsOptions(PluginTask task)
8788 }
8889 catch (FileSystemException e ) {
8990 logger .error (e .getMessage ());
90- throw new RuntimeException (e );
91+ throw new ConfigException (e );
9192 }
9293
9394 return fsOptions ;
@@ -196,7 +197,7 @@ private URI getSftpFileUri(String remoteFilePath)
196197 }
197198 catch (URISyntaxException e ) {
198199 logger .error (e .getMessage ());
199- throw new RuntimeException (e );
200+ throw new ConfigException (e );
200201 }
201202 }
202203
You can’t perform that action at this time.
0 commit comments