/** * Creates a new exception with the specified repository. * * @param repository The remote repository whose transport layout is not supported, may be {@code null}. */ public NoTransporterException( RemoteRepository repository ) { this( repository, toMessage( repository ) ); }
public FileTransporter( RemoteRepository repository, Logger logger ) throws NoTransporterException { if ( !"file".equalsIgnoreCase( repository.getProtocol() ) ) { throw new NoTransporterException( repository ); } this.logger = logger; basedir = new File( PathUtils.basedir( repository.getUrl() ) ).getAbsoluteFile(); }
throw new NoRepositoryConnectorException( repository, e.getMessage(), e );
throw new NoTransporterException( repository ); throw new NoTransporterException( repository, e );
throw new NoRepositoryConnectorException( repository, e.getMessage(), e );
throw new NoTransporterException( repository ); throw new NoTransporterException( repository, e );
/** * Creates a new exception with the specified repository and cause. * * @param repository The remote repository whose transport layout is not supported, may be {@code null}. * @param cause The exception that caused this one, may be {@code null}. */ public NoTransporterException( RemoteRepository repository, Throwable cause ) { this( repository, toMessage( repository ), cause ); }
throw new NoTransporterException( repository, buffer.toString(), errors.size() == 1 ? errors.get( 0 ) : null );
/** * Creates a new exception with the specified repository. * * @param repository The remote repository whose transport layout is not supported, may be {@code null}. */ public NoTransporterException( RemoteRepository repository ) { this( repository, toMessage( repository ) ); }
throw new NoTransporterException( repository, buffer.toString(), errors.size() == 1 ? errors.get( 0 ) : null );
/** * Creates a new exception with the specified repository and cause. * * @param repository The remote repository whose transport layout is not supported, may be {@code null}. * @param cause The exception that caused this one, may be {@code null}. */ public NoTransporterException( RemoteRepository repository, Throwable cause ) { this( repository, toMessage( repository ), cause ); }
if ( wagonHint == null || wagonHint.length() <= 0 ) throw new NoTransporterException( repository ); throw new NoTransporterException( repository, e.getMessage(), e );
&& !"https".equalsIgnoreCase( repository.getProtocol() ) ) throw new NoTransporterException( repository ); throw new NoTransporterException( repository, e.getMessage(), e );