File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
src/main/java/main/exceptions Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 6
6
<groupId >unifi_reporting_api</groupId >
7
7
<artifactId >api</artifactId >
8
8
<packaging >war</packaging >
9
- <version >0.3.0 </version >
9
+ <version >0.3.1 </version >
10
10
11
11
<properties >
12
12
<project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ private static String getErrorMessage(String sqlcode){
15
15
case "45000" :
16
16
case "23505" :
17
17
return "You are trying to create duplicate entity." ;
18
+ case "42000" :
19
+ return "You Regular expression is not valid!" ;
18
20
default :
19
21
return String .format ("Unknown SQL Error: %s" , sqlcode );
20
22
}
@@ -26,6 +28,8 @@ private static Integer getErrorCode(String sqlcode){
26
28
case "45000" :
27
29
case "23505" :
28
30
return 409 ;
31
+ case "42000" :
32
+ return 400 ;
29
33
default :
30
34
return 500 ;
31
35
}
You can’t perform that action at this time.
0 commit comments