Main Page
Namespaces
Classes
Files
File List
File Members
src
wiimote
wiimoteExceptions.py
Go to the documentation of this file.
1
################################################################################
2
#
3
# File: wiimoteExceptions.py
4
# RCS: $Header: $
5
# Description: Exception Classes for Wiimote Controller
6
# Author: Andreas Paepcke
7
# Created: Thu Aug 13 09:01:17 2009
8
# Modified: Mon Aug 17 11:27:02 2009 (Andreas Paepcke) paepcke@anw.willowgarage.com
9
# Language: Python
10
# Package: N/A
11
# Status: Experimental (Do Not Distribute)
12
#
13
#
14
#
15
################################################################################
16
17
class
WiimoteError
(Exception):
18
"""Mother of all Wiimote exceptions"""
19
20
errMsg =
None
21
22
def
__init__
(self, theErrMsg):
23
self.
errMsg
= theErrMsg
24
25
def
__str__
(self):
26
return
self.
errMsg
27
28
29
class
WiimoteNotFoundError
(
WiimoteError
):
30
"""Tried to pair but failed."""
31
32
33
class
WiimoteEnableError(WiimoteError):
34
"""Found wiimote, but couldn't enable it."""
35
36
37
class
CallbackStackMultInstError
(
WiimoteError
):
38
"""Code attempted to create a second callback stack instance."""
39
40
class
ResumeNonPausedError
(
WiimoteError
):
41
"""Code attempted to resume callbacks without first pausing."""
42
43
class
CallbackStackEmptyError
(
WiimoteError
):
44
"""Attemp to operate on an empty callback stack."""
45
wiimote.wiimoteExceptions.WiimoteError
File: wiimoteExceptions.py RCS:
Definition:
wiimoteExceptions.py:17
wiimote.wiimoteExceptions.WiimoteNotFoundError
Definition:
wiimoteExceptions.py:29
wiimote.wiimoteExceptions.WiimoteError.errMsg
errMsg
Definition:
wiimoteExceptions.py:20
wiimote.wiimoteExceptions.ResumeNonPausedError
Definition:
wiimoteExceptions.py:40
wiimote.wiimoteExceptions.CallbackStackEmptyError
Definition:
wiimoteExceptions.py:43
wiimote.wiimoteExceptions.WiimoteError.__init__
def __init__(self, theErrMsg)
Definition:
wiimoteExceptions.py:22
wiimote.wiimoteExceptions.CallbackStackMultInstError
Definition:
wiimoteExceptions.py:37
wiimote.wiimoteExceptions.WiimoteError.__str__
def __str__(self)
Definition:
wiimoteExceptions.py:25
wiimote
Author(s): Andreas Paepcke, Melonee Wise, Mark Horn
autogenerated on Mon Jun 10 2019 13:42:43