15. API - Exceptions¶
The exc module defines the various exception classes specific to picraft.
Note
All items in this module are available from the picraft
namespace
without having to import picraft.exc
directly.
The following items are defined in the module:
15.1. Exceptions¶
-
exception
picraft.exc.
ConnectionError
[source]¶ Base class for PiCraft errors relating to network communications
-
exception
picraft.exc.
ConnectionClosed
[source]¶ Exception raised when an operation is attempted against a closed connection
-
exception
picraft.exc.
NoResponse
[source]¶ Exception raised when a network command expects a response but gets none
15.2. Warnings¶
-
exception
picraft.exc.
EmptySliceWarning
[source]¶ Warning raised when a zero-length vector slice is passed to blocks
-
exception
picraft.exc.
NoHandlersWarning
[source]¶ Warning raised when a class with no handlers is registered with
has_handlers()