Skip to content

Commit

Permalink
Return invalid card exception for new error message
Browse files Browse the repository at this point in the history
  • Loading branch information
jamezrin committed Jan 8, 2019
1 parent 738ad40 commit c7c3c74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.github.jamezrin</groupId>
<artifactId>crtm-cards-java</artifactId>
<version>1.2-SNAPSHOT</version>
<version>1.2.1-SNAPSHOT</version>
<name>crtm-cards-java</name>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c7c3c74

Please sign in to comment.