Skip to content

Commit 0111d50

Browse files
committed
chore: change no field exception msg
1 parent 4563a97 commit 0111d50

File tree

14 files changed

+14
-14
lines changed

14 files changed

+14
-14
lines changed

generator/src/main/java/com/reajason/javaweb/memshell/shelltool/antsword/AntSword.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,6 @@ public static Object getFieldValue(Object obj, String name) throws Exception {
7171
clazz = clazz.getSuperclass();
7272
}
7373
}
74-
throw new NoSuchFieldException();
74+
throw new NoSuchFieldException(obj.getClass().getName() + " Field not found: " + name);
7575
}
7676
}

generator/src/main/java/com/reajason/javaweb/memshell/shelltool/behinder/Behinder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public static Object getFieldValue(Object obj, String name) throws Exception {
8585
clazz = clazz.getSuperclass();
8686
}
8787
}
88-
throw new NoSuchFieldException();
88+
throw new NoSuchFieldException(obj.getClass().getName() + " Field not found: " + name);
8989
}
9090

9191
@SuppressWarnings("all")

generator/src/main/java/com/reajason/javaweb/memshell/shelltool/behinder/BehinderControllerHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public static Object getFieldValue(Object obj, String name) throws Exception {
7070
clazz = clazz.getSuperclass();
7171
}
7272
}
73-
throw new NoSuchFieldException();
73+
throw new NoSuchFieldException(obj.getClass().getName() + " Field not found: " + name);
7474
}
7575

7676
@SuppressWarnings("all")

generator/src/main/java/com/reajason/javaweb/memshell/shelltool/behinder/BehinderFilter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public static Object getFieldValue(Object obj, String name) throws Exception {
7676
clazz = clazz.getSuperclass();
7777
}
7878
}
79-
throw new NoSuchFieldException();
79+
throw new NoSuchFieldException(obj.getClass().getName() + " Field not found: " + name);
8080
}
8181

8282
@SuppressWarnings("all")

generator/src/main/java/com/reajason/javaweb/memshell/shelltool/behinder/BehinderInterceptor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public static Object getFieldValue(Object obj, String name) throws Exception {
7373
clazz = clazz.getSuperclass();
7474
}
7575
}
76-
throw new NoSuchFieldException();
76+
throw new NoSuchFieldException(obj.getClass().getName() + " Field not found: " + name);
7777
}
7878

7979
@SuppressWarnings("all")

generator/src/main/java/com/reajason/javaweb/memshell/shelltool/behinder/BehinderJettyHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public static Object getFieldValue(Object obj, String name) throws Exception {
9494
clazz = clazz.getSuperclass();
9595
}
9696
}
97-
throw new NoSuchFieldException();
97+
throw new NoSuchFieldException(obj.getClass().getName() + " Field not found: " + name);
9898
}
9999

100100
@SuppressWarnings("all")

generator/src/main/java/com/reajason/javaweb/memshell/shelltool/behinder/BehinderListener.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public static Object getFieldValue(Object obj, String name) throws Exception {
7777
clazz = clazz.getSuperclass();
7878
}
7979
}
80-
throw new NoSuchFieldException();
80+
throw new NoSuchFieldException(obj.getClass().getName() + " Field not found: " + name);
8181
}
8282

8383
@SuppressWarnings("all")

generator/src/main/java/com/reajason/javaweb/memshell/shelltool/behinder/BehinderServlet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public static Object getFieldValue(Object obj, String name) throws Exception {
7373
clazz = clazz.getSuperclass();
7474
}
7575
}
76-
throw new NoSuchFieldException();
76+
throw new NoSuchFieldException(obj.getClass().getName() + " Field not found: " + name);
7777
}
7878

7979
@SuppressWarnings("all")

generator/src/main/java/com/reajason/javaweb/memshell/shelltool/behinder/BehinderUndertowServletHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public static Object getFieldValue(Object obj, String name) throws Exception {
7979
clazz = clazz.getSuperclass();
8080
}
8181
}
82-
throw new NoSuchFieldException();
82+
throw new NoSuchFieldException(obj.getClass().getName() + " Field not found: " + name);
8383
}
8484

8585
@SuppressWarnings("all")

generator/src/main/java/com/reajason/javaweb/memshell/shelltool/behinder/BehinderValve.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public static Object getFieldValue(Object obj, String name) throws Exception {
7575
clazz = clazz.getSuperclass();
7676
}
7777
}
78-
throw new NoSuchFieldException();
78+
throw new NoSuchFieldException(obj.getClass().getName() + " Field not found: " + name);
7979
}
8080

8181
@SuppressWarnings("all")

0 commit comments

Comments
 (0)