Skip to content

Commit 97ff8c1

Browse files
dmitrii-ubskiiflyingsilverfin
authored andcommitted
errors
1 parent 11918fc commit 97ff8c1

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed
Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,21 @@
11
= Errors
22

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+
====

0 commit comments

Comments
 (0)