File tree Expand file tree Collapse file tree 1 file changed +19
-2
lines changed
new_core_concepts/modules/ROOT/pages/typedb Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Original file line number Diff line number Diff line change 1
1
= Errors
2
2
3
- [placeholder]
4
- Error handling in TypeDB server.
3
+ Errors in TypeDB keep track of their cause, and the location of the error in the query. Console and Studio will display the full stck from
4
+ the lowest level cause, such as a TypeQL syntax error, to the ultimate outcome such as the transaction being closed as a result of an
5
+ invalid write. You can access the entire stacktrace of the error in the drivers by e.g. repeatedly calling the `Error::source()` method in
6
+ the Rust driver.
7
+
8
+ [,]
9
+ ====
10
+ test::schema>> define person sub entity;
11
+
12
+ Error executing command: 'define person sub entity;'
13
+
14
+ [TQL0] [TQL03] TypeQL Error: There is a syntax error
15
+ parsing error: expected identifier
16
+ Near 1:18:
17
+ -- > define person sub entity;
18
+ ^
19
+ Caused: Error in usage of TypeQL.
20
+ Caused: [TSV7] Query parsing failed.
21
+ ====
You can’t perform that action at this time.
0 commit comments