I'm trying to expose my classes using Pyro4. The problem is that my class has a custom exception that Pyro4 is not able to handle it.
I have tried using serialization but nothing seems to work.
What I have is:
# exception class
class TestException(Expection):
pass
# test class
@Pyro4.expose
class Test:
def get_exception(self):
raise TestException("This is a random exception.")
Pyro4 is not able to raise the TestException. It give me an error: {SerializedError}unsupported serialized class: TestException
Does anyone have an idea on how to fix this?
Thanks.