Phidgets.PhidgetException (version 2.1.5, October 23 2008)
index
 

Copyright 2008 Phidgets Inc.
This work is licensed under the Creative Commons Attribution 2.5 Canada License. 
To view a copy of this license, visit http://creativecommons.org/licenses/by/2.5/ca/

 
Modules
       
sys

 
Classes
       
PhidgetErrorCodes
exceptions.Exception(exceptions.BaseException)
PhidgetException

 
class PhidgetErrorCodes
    This is an enumeration that references a textual representation of an error type to its corresponding
error code.
 
  Data and other attributes defined here:
EPHIDGET_BADPASSWORD = 10
EPHIDGET_DUPLICATE = 12
EPHIDGET_EVENT = 15
EPHIDGET_INTERRUPTED = 6
EPHIDGET_INVALID = 7
EPHIDGET_INVALIDARG = 4
EPHIDGET_NETWORK = 8
EPHIDGET_NETWORK_NOTCONNECTED = 16
EPHIDGET_NOMEMORY = 2
EPHIDGET_NOTATTACHED = 5
EPHIDGET_NOTFOUND = 1
EPHIDGET_OK = 0
EPHIDGET_OUTOFBOUNDS = 14
EPHIDGET_TIMEOUT = 13
EPHIDGET_UNEXPECTED = 3
EPHIDGET_UNKNOWNVAL = 9
EPHIDGET_UNSUPPORTED = 11
EPHIDGET_WRONGDEVICE = 17
PHIDGET_ERROR_CODE_COUNT = 18

 
class PhidgetException(exceptions.Exception)
    This class represents Phidget related exceptions.
 
All Phidget exceptions originate in the phidget21 C library.
These exceptions can be thrown by most function in the library and cover such things as trying to access a Phidget before opening it,
or before it is attached and ready to use, out of bounds Index and data values,
trying to read data that isn't available, and other less common problems.
 
Extends:
    Exception
 
 
Method resolution order:
PhidgetException
exceptions.Exception
exceptions.BaseException
__builtin__.object

Methods defined here:
__init__(self, code)

Data descriptors defined here:
__weakref__
list of weak references to the object (if defined)

Data and other attributes inherited from exceptions.Exception:
__new__ = <built-in method __new__ of type object at 0x1E1CCBE8>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from exceptions.BaseException:
__delattr__(...)
x.__delattr__('name') <==> del x.name
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__getitem__(...)
x.__getitem__(y) <==> x[y]
__getslice__(...)
x.__getslice__(i, j) <==> x[i:j]
 
Use of negative indices is not supported.
__reduce__(...)
__repr__(...)
x.__repr__() <==> repr(x)
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
__setstate__(...)
__str__(...)
x.__str__() <==> str(x)

Data descriptors inherited from exceptions.BaseException:
__dict__
args
message
exception message

 
Functions
       
FormatError(...)
FormatError([integer]) -> string
 
Convert a win32 error code into a string. If the error code is not
given, the return value of a call to GetLastError() is used.
Lock = allocate_lock(...)
allocate_lock() -> lock object
(allocate() is an obsolete synonym)
 
Create a new lock object.  See LockType.__doc__ for information about locks.
addressof(...)
addressof(C instance) -> integer
Return the address of the C instance internal buffer
alignment(...)
alignment(C type) -> integer
alignment(C instance) -> integer
Return the alignment requirements of a C instance
byref(...)
byref(C instance) -> byref-object
Return a pointer lookalike to a C instance, only usable
as function argument
resize(...)
Resize the memory buffer of a ctypes instance
set_conversion_mode(...)
set_conversion_mode(encoding, errors) -> (previous-encoding, previous-errors)
 
Set the encoding and error handling ctypes uses when converting
between unicode and strings.  Returns the previous values.
sizeof(...)
sizeof(C type) -> integer
sizeof(C instance) -> integer
Return the size in bytes of a C instance
stack_size(...)
stack_size([size]) -> size
 
Return the thread stack size used when creating new threads.  The
optional size argument specifies the stack size (in bytes) to be used
for subsequently created threads, and must be 0 (use platform or
configured default) or a positive integer value of at least 32,768 (32k).
If changing the thread stack size is unsupported, a ThreadError
exception is raised.  If the specified size is invalid, a ValueError
exception is raised, and the stack size is unmodified.  32k bytes
 currently the minimum supported stack size value to guarantee
sufficient stack space for the interpreter itself.
 
Note that some platforms may have particular restrictions on values for
the stack size, such as requiring a minimum stack size larger than 32kB or
requiring allocation in multiples of the system memory page size
- platform documentation should be referred to for more information
(4kB pages are common; using multiples of 4096 for the stack size is
the suggested approach in the absence of more specific information).

 
Data
        DEFAULT_MODE = 0
GetLastError = <_FuncPtr object at 0x00B0EAF8>
RTLD_GLOBAL = 0
RTLD_LOCAL = 0
__author__ = 'Adam Stelmack'
__date__ = 'October 23 2008'
__version__ = '2.1.5'
cdll = <ctypes.LibraryLoader object at 0x00944850>
memmove = <CFunctionType object at 0x00B0EB70>
memset = <CFunctionType object at 0x00B0EBE8>
oledll = <ctypes.LibraryLoader object at 0x009448D0>
pydll = <ctypes.LibraryLoader object at 0x00944870>
pythonapi = <PyDLL 'python dll', handle 1e000000 at 944890>
windll = <ctypes.LibraryLoader object at 0x009448B0>

 
Author
        Adam Stelmack