import org.hedgecode.chess.scanner.entity.PGNGame;
import org.hedgecode.chess.scanner.entity.PGNTournament;
+import static org.hedgecode.chess.scanner.ScannerConstants.*;
+
/**
* Chess2700Scanner
*
@Override
public PGNTournament scanTournament(String tournamentId) throws ScannerException {
throw new ScannerException(
- "2700Chess does not support searching for a tournament by ID!"
+ "scanner.portal.search.unavailable.tournament.id", DOMAIN_2700CHESS
);
}
@Override
public PGNTournament findTournament(String tournamentName) throws ScannerException {
throw new ScannerException(
- "2700Chess does not support searching for a tournament by name!"
+ "scanner.portal.search.unavailable.tournament.name", DOMAIN_2700CHESS
);
}
);
if (pgn == null) {
throw new ScannerException(
- String.format("Failed to get PGN for requesting URL: %s", gameUrl)
+ "scanner.failed.request.url", gameUrl
);
}
pgn = StringUtils.formatCrlf(pgn);
if (!StringUtils.isPgn(pgn)) {
throw new ScannerException(
- String.format("Incorrect PGN for requesting URL: %s", gameUrl)
+ "scanner.incorrect.pgn.url", gameUrl
);
}
return new PGNGame(