view.exceptions¶
Common exceptions used throughout view.py.
Exceptions
|
Something got a type that it didn't expect. |
|
Base class for all exceptions in view.py |
- exception InvalidTypeError(got: Any, *expected: type)¶
-
Something got a type that it didn’t expect. For example, passing a
strobject in a place where abytesobject was expected would raise this error.In order to fix this, please review the documentation of the function you’re attempting to call and ensure that you are passing it the correct types. view.py is completely type-safe, so if your editor/IDE is complaining about something, it is very likely the culprit.
- args¶
- with_traceback()¶
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.