@Test public void testClassify() throws Exception { assertEquals( Transporter.ERROR_OTHER, transporter.classify( new FileNotFoundException() ) ); assertEquals( Transporter.ERROR_NOT_FOUND, transporter.classify( new ResourceNotFoundException( "test" ) ) ); }
public int classify( Throwable error ) { if ( error instanceof ResourceNotFoundException ) { return ERROR_NOT_FOUND; } return ERROR_OTHER; }
FileTransporter extends AbstractTransporter { public int classify( Throwable error ) { if ( error instanceof ResourceNotFoundException ) { return ERROR_NOT_FOUND; } return ERROR_OTHER; } }
FileTransporter extends AbstractTransporter { public int classify( Throwable error ) { if ( error instanceof ResourceNotFoundException ) { return ERROR_NOT_FOUND; } return ERROR_OTHER; } FileTransporter( RemoteRepository repository, Logger logger ); }
FileTransporter extends AbstractTransporter { public int classify( Throwable error ) { if ( error instanceof ResourceNotFoundException ) { return ERROR_NOT_FOUND; } return ERROR_OTHER; } FileTransporter( RemoteRepository repository, Logger logger ); int classify( Throwable error ); }
FileTransporter extends AbstractTransporter { public int classify( Throwable error ) { if ( error instanceof ResourceNotFoundException ) { return ERROR_NOT_FOUND; } return ERROR_OTHER; } FileTransporter( RemoteRepository repository, Logger logger ); int classify( Throwable error );  }