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 class WiimoteError(Exception):
17  """Mother of all Wiimote exceptions"""
18 
19  errMsg = None
20 
21  def __init__(self, theErrMsg):
22  self.errMsg = theErrMsg
23 
24  def __str__(self):
25  return self.errMsg
26 
27 
29  """Tried to pair but failed."""
30 
31 
32 class WiimoteEnableError(WiimoteError):
33  """Found wiimote, but couldn't enable it."""
34 
35 
37  """Code attempted to create a second callback stack instance."""
38 
39 
41  """Code attempted to resume callbacks without first pausing."""
42 
43 
45  """Attemp to operate on an empty callback stack."""
wiimote.wiimoteExceptions.CallbackStackMultInstError
Definition: wiimoteExceptions.py:36
wiimote.wiimoteExceptions.WiimoteError.__str__
def __str__(self)
Definition: wiimoteExceptions.py:24
wiimote.wiimoteExceptions.WiimoteNotFoundError
Definition: wiimoteExceptions.py:28
wiimote.wiimoteExceptions.WiimoteError
Definition: wiimoteExceptions.py:16
wiimote.wiimoteExceptions.CallbackStackEmptyError
Definition: wiimoteExceptions.py:44
wiimote.wiimoteExceptions.ResumeNonPausedError
Definition: wiimoteExceptions.py:40
wiimote.wiimoteExceptions.WiimoteError.errMsg
errMsg
Definition: wiimoteExceptions.py:19
wiimote.wiimoteExceptions.WiimoteError.__init__
def __init__(self, theErrMsg)
Definition: wiimoteExceptions.py:21


wiimote
Author(s): Andreas Paepcke, Melonee Wise, Mark Horn
autogenerated on Thu Dec 5 2024 03:18:13