wiimoteExceptions.py
Go to the documentation of this file.
00001 ################################################################################
00002 #
00003 # File:         wiimoteExceptions.py
00004 # RCS:          $Header: $
00005 # Description:  Exception Classes for Wiimote Controller
00006 # Author:       Andreas Paepcke
00007 # Created:      Thu Aug 13 09:01:17 2009
00008 # Modified:     Mon Aug 17 11:27:02 2009 (Andreas Paepcke) paepcke@anw.willowgarage.com
00009 # Language:     Python
00010 # Package:      N/A
00011 # Status:       Experimental (Do Not Distribute)
00012 #
00013 # 
00014 #
00015 ################################################################################
00016 
00017 class WiimoteError(Exception):
00018   """Mother of all Wiimote exceptions"""
00019 
00020   errMsg = None
00021 
00022   def __init__(self, theErrMsg):
00023     self.errMsg = theErrMsg
00024   
00025   def __str__(self):
00026     return self.errMsg
00027 
00028 
00029 class WiimoteNotFoundError(WiimoteError):
00030   """Tried to pair but failed."""
00031 
00032 
00033 class WiimoteEnableError(WiimoteError):
00034   """Found wiimote, but couldn't enable it."""
00035 
00036 
00037 class CallbackStackMultInstError(WiimoteError):
00038   """Code attempted to create a second callback stack instance."""
00039 
00040 class ResumeNonPausedError(WiimoteError):
00041   """Code attempted to resume callbacks without first pausing."""
00042 
00043 class CallbackStackEmptyError(WiimoteError):
00044   """Attemp to operate on an empty callback stack."""
00045   


wiimote
Author(s): Andreas Paepcke and Melonee Wise
autogenerated on Sat Dec 28 2013 17:06:50