Skip to content

Commit 0167363

Browse files
committed
LISTEN/NOTIFY funcionality
Signed-off-by: chandr-andr (Kiselev Aleksandr) <chandr@chandr.net>
1 parent b629c4c commit 0167363

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

docs/components/exceptions.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ stateDiagram-v2
1515
RustPSQLDriverPyBaseError --> BaseConnectionError
1616
RustPSQLDriverPyBaseError --> BaseTransactionError
1717
RustPSQLDriverPyBaseError --> BaseCursorError
18+
RustPSQLDriverPyBaseError --> BaseListenerError
1819
RustPSQLDriverPyBaseError --> RustException
1920
RustPSQLDriverPyBaseError --> RustToPyValueMappingError
2021
RustPSQLDriverPyBaseError --> PyToRustValueMappingError
@@ -44,6 +45,11 @@ stateDiagram-v2
4445
[*] --> CursorFetchError
4546
[*] --> CursorClosedError
4647
}
48+
state BaseListenerError {
49+
[*] --> ListenerStartError
50+
[*] --> ListenerClosedError
51+
[*] --> ListenerCallbackError
52+
}
4753
state RustException {
4854
[*] --> DriverError
4955
[*] --> MacAddrParseError
@@ -127,3 +133,15 @@ Error in cursor fetch (any fetch).
127133

128134
#### CursorClosedError
129135
Error if underlying connection is closed.
136+
137+
### BaseListenerError
138+
Base error for all Listener errors.
139+
140+
#### ListenerStartError
141+
Error if listener start failed.
142+
143+
#### ListenerClosedError
144+
Error if listener manipulated but it's closed
145+
146+
#### ListenerCallbackError
147+
Error if callback passed to listener isn't a coroutine

0 commit comments

Comments
 (0)