view.exceptions

Common exceptions used throughout view.py.

Exceptions

InvalidTypeError(got, *expected)

Something got a type that it didn't expect.

ViewError(*msg)

Base class for all exceptions in view.py

exception InvalidTypeError(got: Any, *expected: type)

Bases: ViewError, TypeError

Something got a type that it didn’t expect. For example, passing a str object in a place where a bytes object 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.

exception ViewError(*msg: str)

Bases: Exception

Base class for all exceptions in view.py

args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.