From c7c3c74f5bc5879350c01b183faea653c2f5b81b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Mart=C3=ADnez=20Rinc=C3=B3n?= Date: Tue, 8 Jan 2019 22:48:39 +0100 Subject: [PATCH] Return invalid card exception for new error message --- pom.xml | 2 +- src/main/java/com/github/jamezrin/crtmcards/ErrorChecker.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 76b5c74..48c3511 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ com.github.jamezrin crtm-cards-java - 1.2-SNAPSHOT + 1.2.1-SNAPSHOT crtm-cards-java diff --git a/src/main/java/com/github/jamezrin/crtmcards/ErrorChecker.java b/src/main/java/com/github/jamezrin/crtmcards/ErrorChecker.java index 3c116b7..6b3d4a8 100644 --- a/src/main/java/com/github/jamezrin/crtmcards/ErrorChecker.java +++ b/src/main/java/com/github/jamezrin/crtmcards/ErrorChecker.java @@ -22,6 +22,7 @@ public static void checkForErrorLabel(Element element) throws ScraperException { if (!content.isEmpty()) { switch (content) { case "POR FAVOR, INTRODUZCA DE NUEVO SU TARJETA": // get these strings in the exceptions or map + case "DISCULPE LA MOLESTIAS. NO TENEMOS RESULTADOS PARA SUS PARAMETROS DE BUSQUEDA": throw new NotExistentCardNumberException(content); case "TARJETA NO ACTIVA": throw new InactiveCardNumberException(content);