Hi
>
>> > Do you have some ideas about the name of this class?
>>
>> I think plpy.Error is fine.
>>
>>
> here is updated patch - work with 2.x Python.
>
> I have 3.x Python broken on my fedora, so I should not do tests on 3.x.
>
here is complete patch - regress tests for all supported Python branches
>
> Regards
>
> Pavel
>