Jason Tackaberry wrote:
> On Thu, 2008-02-21 at 15:20 +0100, Dirk Meyer wrote:
>> For some stuff at work that will be part of Freevo later. My problem
>> is that I have an exception class, that takes an object and not a
>> string on __init__. And I use that exception async. If I do, your
>> metaclass somehow whats to create a new object of my class but only
>> has a string as parameter.
>
> Ok, then this is a bug.  AsyncExceptions should be transparent from the
> actual exception it is wrapping.  I will look into it.

I raise something like this:

class Info(object):
    some attributes including self.name


class MyException(Exception):
    def __init__(self, info):
        Exception.__init__(self, info.name)
        self.info = info

When raising this with async functions info will be a string somehow.


Dischi

-- 
What happens if a big asteroid hits the Earth? Judging from realistic
simulations involving a sledge hammer and a common laboratory frog, we
can assume it will be pretty bad.

Attachment: pgpKN0xHMLg7R.pgp
Description: PGP signature

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to