Skip to content

Commit 95b6964

Browse files
committed
change to throw exception
1 parent e6fd2c3 commit 95b6964

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/main/java/graphql/annotations/directives/DirectiveSchemaVisitor.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
* Licensed under the Apache License, Version 2.0 (the "License");
33
* you may not use this file except in compliance with the License.
44
* You may obtain a copy of the License at
5-
*
6-
* http://www.apache.org/licenses/LICENSE-2.0
7-
*
5+
* <p>
6+
* http://www.apache.org/licenses/LICENSE-2.0
7+
* <p>
88
* Unless required by applicable law or agreed to in writing, software
99
* distributed under the License is distributed on an "AS IS" BASIS,
1010
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -131,8 +131,7 @@ private TraversalControl visitGraphQLType(Class<? extends GraphQLDirectiveContai
131131
newNode = functionMap.get(typeOfContainer).apply(directive, newNode,
132132
wiring, parentElement);
133133
} catch (Exception e) {
134-
e.printStackTrace();
135-
return TraversalControl.CONTINUE;
134+
throw new RuntimeException(e);
136135
}
137136
}
138137
}

0 commit comments

Comments
 (0)