Skip to content

Commit 77449c1

Browse files
refactor(query-error): extend IllegalArgumentException
Refs: #21
1 parent ee00255 commit 77449c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/io/github/treesitter/jtreesitter/QueryError.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import org.jspecify.annotations.NonNull;
44

55
/** Any error that occurred while instantiating a {@link Query}. */
6-
public abstract sealed class QueryError extends Throwable
6+
public abstract sealed class QueryError extends IllegalArgumentException
77
permits QueryError.Capture,
88
QueryError.Field,
99
QueryError.NodeType,

0 commit comments

Comments
 (0)