Skip to content

Commit 4e70750

Browse files
authored
add a note about exception handling (#5870)
1 parent c63ee72 commit 4e70750

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo3/compiler/ApolloCompilerPlugin.kt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,11 @@ import com.apollographql.apollo3.compiler.operationoutput.OperationId
1919
typealias Plugin = ApolloCompilerPlugin
2020

2121
/**
22-
* Entry point for customizing the behaviour of the Apollo Compiler besides the
23-
* already existing options
22+
* [ApolloCompilerPlugin] allows to customize the behaviour of the Apollo Compiler.
23+
*
24+
* [ApolloCompilerPlugin] is run in an isolated classloader. You may throw from [ApolloCompilerPlugin] methods to fail the build
25+
* but custom exception classes are not accessible from the calling environment like Gradle for an example.
26+
* Prefer throwing regular Java exception classes.
2427
*/
2528
interface ApolloCompilerPlugin {
2629
/**

0 commit comments

Comments
 (0)