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 
30  """Tried to pair but failed."""
31 
32 
33 class WiimoteEnableError(WiimoteError):
34  """Found wiimote, but couldn't enable it."""
35 
36 
38  """Code attempted to create a second callback stack instance."""
39 
41  """Code attempted to resume callbacks without first pausing."""
42 
44  """Attemp to operate on an empty callback stack."""
45 
File: wiimoteExceptions.py RCS:


wiimote
Author(s): Andreas Paepcke, Melonee Wise, Mark Horn
autogenerated on Mon Jun 10 2019 13:42:43