File tree 2 files changed +25
-0
lines changed
backend/src/main/java/de/itermori/pse/kitroomfinder/backend
2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change 5
5
import org .springframework .boot .autoconfigure .SpringBootApplication ;
6
6
import org .springframework .data .jpa .repository .config .EnableJpaRepositories ;
7
7
8
+ /**
9
+ * The main class.
10
+ *
11
+ * @author Lukas Zetto
12
+ * @author Adriano Castro
13
+ * @version 1.0
14
+ */
8
15
@ EnableEncryptableProperties
9
16
@ EnableJpaRepositories (basePackages = "de.itermori.pse.kitroomfinder.backend.repositories" )
10
17
@ SpringBootApplication ()
11
18
public class BackendApplication {
12
19
20
+ /**
21
+ * The main method.
22
+ * @param args The arguments.
23
+ */
13
24
public static void main (String [] args ) {
14
25
SpringApplication .run (BackendApplication .class , args );
15
26
}
Original file line number Diff line number Diff line change 9
9
import java .util .List ;
10
10
import java .util .stream .Collectors ;
11
11
12
+ /**
13
+ * Handles GraphQL errors.
14
+ *
15
+ * @author Lukas Zetto
16
+ * @version 1.0
17
+ */
12
18
@ Component
13
19
public class ErrorHandling implements GraphQLErrorHandler {
20
+
21
+ /**
22
+ * Processes GraphQL errors.
23
+ *
24
+ * @param errors The GraphQL errors.
25
+ * @return The processed errors.
26
+ */
14
27
@ Override
15
28
public List <GraphQLError > processErrors (List <GraphQLError > errors ) {
16
29
if (errors == null || errors .isEmpty ()) {
@@ -28,4 +41,5 @@ private GraphQLError unwrapError(GraphQLError error) {
28
41
} else
29
42
return error ;
30
43
}
44
+
31
45
}
You can’t perform that action at this time.
0 commit comments