Skip to content

Commit 37c1b6c

Browse files
Merge branch 'develop' into feature/CannotImportIntoLastTestRun
2 parents 4d93da6 + 5d50b2f commit 37c1b6c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<groupId>unifi_reporting_api</groupId>
77
<artifactId>api</artifactId>
88
<packaging>war</packaging>
9-
<version>0.3.0</version>
9+
<version>0.3.1</version>
1010

1111
<properties>
1212
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

src/main/java/main/exceptions/AqualitySQLException.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ private static String getErrorMessage(String sqlcode){
1515
case "45000":
1616
case "23505":
1717
return "You are trying to create duplicate entity.";
18+
case "42000":
19+
return "You Regular expression is not valid!";
1820
default:
1921
return String.format("Unknown SQL Error: %s", sqlcode);
2022
}
@@ -26,6 +28,8 @@ private static Integer getErrorCode(String sqlcode){
2628
case "45000":
2729
case "23505":
2830
return 409;
31+
case "42000":
32+
return 400;
2933
default:
3034
return 500;
3135
}

0 commit comments

Comments
 (0)