errors
StreamError
Bases: BaseStreamError
Error with a specific error code that maps to a localized user-facing error message.
Source code in chatkit/errors.py
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | |
CustomStreamError
Bases: BaseStreamError
Error with a custom user-facing error message. The message should be localized as needed before raising the error.
Source code in chatkit/errors.py
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | |
message
instance-attribute
message: str = message
The user-facing error message to display.