private void disconnectWagon( Wagon wagon ) { try { wagon.disconnect(); } catch ( ConnectionException e ) { logger.error( "Problem disconnecting from wagon - ignoring: " + e.getMessage() ); } }
if(no connection) { //check connection throw new ConnectionException ("No connection!"); } else { ... }
public void disconnect() throws IOException { if ( wagon != null ) { try { wagon.disconnect(); } catch ( ConnectionException ex ) { IOException ioe = new IOException( ex.toString() ); ioe.initCause( ex ); throw ioe; } } }
e.printStackTrace(); System.exit( 2 );
@Override public void closeConnection() throws ConnectionException { if (client != null) { try { client.close(); } catch (IOException e) { throw new ConnectionException(e.getMessage(), e); } } }
public void disconnect() throws IOException { if ( wagon != null ) { try { wagon.disconnect(); } catch ( ConnectionException ex ) { IOException ioe = new IOException( ex.toString() ); ioe.initCause( ex ); throw ioe; } } }
/** * Remove (delete) the checkout directory. * * @throws ConnectionException if unable to clean up the checkout directory. */ private void removeCheckoutDirectory() throws ConnectionException { if (checkoutDirectory == null) { return; // Silently return. } try { FileUtils.deleteDirectory(checkoutDirectory); } catch (IOException e) { throw new ConnectionException("Unable to cleanup checkout directory", e); } }
throw new TransferFailedException( "Connection failed: " + e.getMessage(), e );
public void disconnect() throws IOException { if ( wagon != null ) { try { wagon.disconnect(); } catch ( ConnectionException ex ) { IOException ioe = new IOException( ex.toString() ); ioe.initCause( ex ); throw ioe; } } }
private void removeCheckoutDirectory() throws ConnectionException { if ( checkoutDirectory == null ) { return; // Silently return. } try { deleteCheckoutDirectory(); } catch ( IOException e ) { throw new ConnectionException( "Unable to cleanup checkout directory", e ); } }
throw new TransferFailedException( "Connection failed: " + e.getMessage(), e );
/** * Closes the connection * * @throws ConnectionException */ public void closeConnection() throws ConnectionException { try { if ( webdavResource != null ) { webdavResource.close(); } } catch ( IOException ioe ) { throw new ConnectionException( "Connection Exception: " + ioe.getMessage(), ioe ); } finally { webdavResource = null; } }
private void disconnectWagon( Wagon wagon ) { try { wagon.disconnect(); } catch ( ConnectionException e ) { getLogger().error( "Problem disconnecting from wagon - ignoring: " + e.getMessage() ); } }
@Override public void openConnection() throws ConnectionException, AuthenticationException { try { doOpenConnection(); } catch (SVNCancelException e) { if(getDotJavaNetFile().exists()) throw new ConnectionException("Unable to connect to "+getSubversionURL(),e); else throw new ConnectionException("Unable to connect to "+getSubversionURL()+" You need to create "+getDotJavaNetFile()+" See https://javanettasks.dev.java.net/nonav/maven/config.html",e); } catch (SVNException e) { throw new ConnectionException("Unable to connect to "+getSubversionURL(),e); } }
throw new DownloadFailedException( url, "Download failed. Reason: " + e.getMessage(), e );
public void openConnection() throws ConnectionException, AuthenticationException { try { doOpenConnection(); } catch (SVNException e) { throw new ConnectionException("Unable to connect to "+getSubversionURL(),e); } }
throw new TransferFailedException( "Connection failed: " + e.getMessage(), e );
throw new ConnectionException(); if (inStream == null) { inStream = this.socket.getInputStream();