Exceptions Reference¶
view.exceptions
¶
__all__ = ('ViewWarning', 'NotLoadedWarning', 'ViewError', 'BadEnvironmentError', 'InvalidBodyError', 'MistakeError', 'LoaderWarning', 'AppNotFoundError', 'DatabaseError', 'InvalidDatabaseSchemaError', 'DuplicateRouteError', 'InvalidRouteError', 'ViewInternalError', 'ConfigurationError', 'NeedsDependencyError', 'InvalidTemplateError', 'TypeValidationError', 'BuildWarning', 'BuildError', 'MissingRequirementError', 'InvalidResultError', 'UnknownBuildStepError', 'PlatformNotSupportedError', 'WebSocketError', 'WebSocketExpectError', 'WebSocketHandshakeError')
module-attribute
¶
BuildWarning
¶
Bases: ViewWarning
Warning issued during building.
InvalidDatabaseSchemaError
¶
Bases: DatabaseError
Database schema is invalid.
LoaderWarning
¶
Bases: ViewWarning
A warning from the loader.
MissingRequirementError
¶
Bases: BuildError
Build requirement is missing.
NotLoadedWarning
¶
Bases: ViewWarning
load() was never called
PlatformNotSupportedError
¶
Bases: BuildError
Build step does not support the platform.
UnknownBuildStepError
¶
Bases: BuildError
Undefined build step was used.
ViewError
¶
ViewWarning
¶
Bases: UserWarning
Base class for all warnings in view.py
WebSocketExpectError
¶
Bases: WebSocketError
, AssertionError
, TypeError
WebSocket received unexpected message.
WebSocketHandshakeError
¶
Bases: WebSocketError
WebSocket handshake went wrong somehow.