James: good point. If only python had chained exceptions....
"raise PropertyFailedError(e)" should probably also capture the traceback (using sys.exc_info()), not just the original exception instance, and pass that to PropertyFailedError. So, pretend I said "raise PropertyFailedError(sys.exc_info())" :)
It was just a sketch to give the idea; and as Tim points out my original version would already be an improvement over what the builtin property does in this situation.
James: good point. If only python had chained exceptions....
"raise PropertyFailedE rror(e) " should probably also capture the traceback (using sys.exc_info()), not just the original exception instance, and pass that to PropertyFailedE rror. So, pretend I said "raise PropertyFailedE rror(sys. exc_info( ))" :)
It was just a sketch to give the idea; and as Tim points out my original version would already be an improvement over what the builtin property does in this situation.