You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewIllegalArgumentException("class '" + clazz.getName() + "', manager of custom type '" + typeName + "' must have a public static 'builder()' method");
119
+
thrownewIllegalArgumentException("class '" + clazz.getName() + "', manager of custom type '" + typeName + "' must have a public static 'schemaBuilderLoader(LoadingState ls, LoaderConfig config, SchemaLoader defaultLoader)' method");
115
120
}
116
121
Class<?> retClazz = method.getReturnType();
117
122
retClazz.asSubclass(Schema.Builder.class);
123
+
} catch(NoSuchMethodExceptionnsme) {
124
+
thrownewIllegalArgumentException("class '" + clazz.getName() + "', manager of custom type '" + typeName + "' must have a 'schemaBuilderLoader(LoadingState ls, LoaderConfig config, SchemaLoader defaultLoader)' method");
125
+
} catch(ClassCastExceptioncce) {
126
+
thrownewIllegalArgumentException("class '" + clazz.getName() + "', manager of custom type '" + typeName + "': 'schemaBuilderLoader(LoadingState ls, LoaderConfig config, SchemaLoader defaultLoader)' method must return an instance of Schema.Builder");
thrownewIllegalArgumentException("class '" + clazz.getName() + "', manager of custom type '" + typeName + "' must have a public static 'schemaKeywords()' method");
thrownewIllegalArgumentException("class '" + clazz.getName() + "', manager of custom type '" + typeName + "' must have a 'builder()' method");
142
+
thrownewIllegalArgumentException("class '" + clazz.getName() + "', manager of custom type '" + typeName + "' must have a 'schemaKeywords()' method");
124
143
} catch(ClassCastExceptioncce) {
125
-
thrownewIllegalArgumentException("class '" + clazz.getName() + "', manager of custom type '" + typeName + "': 'builder()' method must return an instance of Schema.Builder");
144
+
thrownewIllegalArgumentException("class '" + clazz.getName() + "', manager of custom type '" + typeName + "': 'schemaKeywords()' method must return an instance of List<String>");
145
+
} catch(InvocationTargetExceptionite) {
146
+
thrownewIllegalArgumentException("class '" + clazz.getName() + "', manager of custom type '" + typeName + "' failed invoking 'schemaKeywords()' method");
147
+
} catch(IllegalAccessExceptioniae) {
148
+
thrownewIllegalArgumentException("class '" + clazz.getName() + "', manager of custom type '" + typeName + "' failed invoking 'schemaKeywords()' method");
0 commit comments