All of lore.kernel.org
 help / color / mirror / Atom feed
* python bindings: xen.lowlevel.xc.error
@ 2006-05-18 19:31 Kaleb Pederson
  2006-05-18 22:14 ` Ewan Mellor
  0 siblings, 1 reply; 5+ messages in thread
From: Kaleb Pederson @ 2006-05-18 19:31 UTC (permalink / raw)
  To: xen-devel

Hello,

I don't see any way to get at the exception class that is being used by
xen.lowlevel.xc.  I wanted to be able to grab just the xen exceptions,
but it doesn't appear possible:

>>> import xen.lowlevel.xc as xc
>>> dir(xc)
['__doc__', '__file__', '__name__', 'xc']
# the only thing listed is the xc class

# i'm running 3.0.2 using the sedf scheduler, so this should fail
>>> try:
...     x.bvtsched_domain_get(0)
... except Exception, e:
...     print e.__class__
...     print dir(e)
...     print dir(e.__class__)
...     print e.__module__
...     print e.args
...
xen.lowlevel.xc.error
['__doc__', '__getitem__', '__init__', '__module__', '__str__',
'args']
['__doc__', '__getitem__', '__init__', '__module__', '__str__']
xen.lowlevel.xc
(22, 'Invalid argument')
>>> e
<xen.lowlevel.xc.error instance at 0xb7b78b2c>
>>> xc.error
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
AttributeError: 'module' object has no attribute 'error'

Did I miss something?  If not, could the xen.lowlevel.xc.error class be
publically exposed?

Thanks.

--Kaleb

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-05-19 15:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-18 19:31 python bindings: xen.lowlevel.xc.error Kaleb Pederson
2006-05-18 22:14 ` Ewan Mellor
2006-05-19  5:44   ` Kaleb Pederson
2006-05-19  6:53   ` Anthony Liguori
2006-05-19 15:11     ` Ewan Mellor

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.