package org.hedgecode.chess.scanner.portal;
-import org.hedgecode.chess.scanner.ChessHogScannerException;
import org.hedgecode.chess.scanner.Scanner;
+import org.hedgecode.chess.scanner.ScannerException;
import org.hedgecode.chess.scanner.entity.PGNGame;
import org.hedgecode.chess.scanner.entity.PGNTournament;
+import static org.hedgecode.chess.scanner.ScannerConstants.*;
+
/**
* Chess24Scanner
*
}
@Override
- public PGNTournament scanTournament(String tournamentId) throws ChessHogScannerException {
- throw new ChessHogScannerException(
- "The scanner functional of portal chess24.com is under development!"
+ public PGNTournament scanTournament(String tournamentId) throws ScannerException {
+ throw new ScannerException(
+ "scanner.portal.under.development", DOMAIN_CHESS24
);
}
@Override
- public PGNTournament findTournament(String tournamentName) throws ChessHogScannerException {
- throw new ChessHogScannerException(
- "The scanner functional of portal chess24.com is under development!"
+ public PGNTournament findTournament(String tournamentName) throws ScannerException {
+ throw new ScannerException(
+ "scanner.portal.under.development", DOMAIN_CHESS24
);
}
@Override
- public PGNGame scanGame(String gameId) throws ChessHogScannerException {
+ public PGNGame scanGame(String gameId) throws ScannerException {
return scanGame(gameId, null);
}
@Override
- public PGNGame scanGame(String gameId, String tournamentId) throws ChessHogScannerException {
- throw new ChessHogScannerException(
- "The scanner functional of portal chess24.com is under development!"
+ public PGNGame scanGame(String gameId, String tournamentId) throws ScannerException {
+ throw new ScannerException(
+ "scanner.portal.under.development", DOMAIN_CHESS24
);
}
@Override
- public PGNGame scanUrl(String gameUrl) throws ChessHogScannerException {
- throw new ChessHogScannerException(
- "The scanner functional of portal chess24.com is under development!"
+ public PGNGame scanUrl(String gameUrl) throws ScannerException {
+ throw new ScannerException(
+ "scanner.portal.under.development", DOMAIN_CHESS24
);
}