Catch Python exceptions and report them along with their tracebacks.
Catch Python exceptions and report them along with their tracebacks.

Currently, when a Python method called by the C++ code raises an
exception, say for instance, resourceOffer method in the Scheduler
class raises an exception, SWIG only complains that there was some
exception it could notice and reports all such exceptions as
Swig::DirectorMethodException. An issue for this has been reported
in issue #44. This patch adds the SWIG interface required to catch
all the Python exceptions and report them along with the resulting
traceback and the exception string(or the exception value).

Closes gh-44

git-svn-id: 03d7800a49d8905ef4fbcc296184319e19243493@1132238 13f79535-47bb-0310-9956-ffa450edef68

woggle/mesos-old,Aman-Jain-14/customizedMesos,zmalik/mesos,gsantovena/mesos,verizonlabs/mesos,craimbert/mesos,chhsia0/mesos,reneploetz/mesos,enachb/mesos,Gilbert88/mesos,reneploetz/mesos,chhsia0/mesos,charlescearl/VirtualMesos,charlescearl/VirtualMesos,charlescearl/VirtualMesos,chhsia0/mesos,samwhitlock/mesos-monitoring,Gilbert88/mesos,jpeach/mesos,asamerh4/mesos,yuquanshan/customizedMesos,asamerh4/mesos,samwhitlock/mesos-monitoring,gsantovena/mesos,woggle/mesos-old,pwendell/mesos,wickman/mesos,yuquanshan/customizedMesos,andschwa/mesos,neilconway/mesos,chhsia0/mesos,enachb/mesos,zmalik/mesos,dforsyth/mesos,verizonlabs/mesos,neilconway/mesos,jpeach/mesos,samwhitlock/mesos-monitoring,pwendell/mesos,verizonlabs/mesos,dforsyth/mesos,verizonlabs/mesos,kaysoky/mesos,yuquanshan/customizedMesos,Gilbert88/mesos,charlescearl/VirtualMesos,charlescearl/VirtualMesos,enachb/mesos,kaysoky/mesos,reneploetz/mesos,craimbert/mesos,Aman-Jain-14/customizedMesos,kaysoky/mesos,reneploetz/mesos,asamerh4/mesos,pwendell/mesos,charlescearl/VirtualMesos,Gilbert88/mesos,yuquanshan/customizedMesos,woggle/mesos-old,abudnik/mesos,woggle/mesos-old,jpeach/mesos,kaysoky/mesos,jpeach/mesos,zmalik/mesos,charlescearl/VirtualMesos,dforsyth/mesos,jpeach/mesos,samwhitlock/mesos-monitoring,woggle/mesos-old,reneploetz/mesos,craimbert/mesos,kaysoky/mesos,Aman-Jain-14/customizedMesos,pwendell/mesos,woggle/mesos-old,asamerh4/mesos,neilconway/mesos,verizonlabs/mesos,enachb/mesos,charlescearl/VirtualMesos,charlescearl/VirtualMesos,wickman/mesos,chhsia0/mesos,Aman-Jain-14/customizedMesos,jpeach/mesos,enachb/mesos,zmalik/mesos,pwendell/mesos,Gilbert88/mesos,chhsia0/mesos,zmalik/mesos,chhsia0/mesos,gsantovena/mesos,asamerh4/mesos,verizonlabs/mesos,zmalik/mesos,neilconway/mesos,Aman-Jain-14/customizedMesos,neilconway/mesos,dforsyth/mesos,abudnik/mesos,neilconway/mesos,wickman/mesos,abudnik/mesos,pwendell/mesos,yuquanshan/customizedMesos,kaysoky/mesos,gsantovena/mesos,gsantovena/mesos,neilconway/mesos,andschwa/mesos,abudnik/mesos,woggle/mesos-old,dforsyth/mesos,enachb/mesos,andschwa/mesos,Gilbert88/mesos,gsantovena/mesos,wickman/mesos,asamerh4/mesos,yuquanshan/customizedMesos,abudnik/mesos,enachb/mesos,jpeach/mesos,pwendell/mesos,wickman/mesos,asamerh4/mesos,Gilbert88/mesos,wickman/mesos,craimbert/mesos,abudnik/mesos,craimbert/mesos,abudnik/mesos,craimbert/mesos,Aman-Jain-14/customizedMesos,woggle/mesos-old,andschwa/mesos,Aman-Jain-14/customizedMesos,dforsyth/mesos,woggle/mesos-old,pwendell/mesos,andschwa/mesos,samwhitlock/mesos-monitoring,gsantovena/mesos,samwhitlock/mesos-monitoring,verizonlabs/mesos,reneploetz/mesos,reneploetz/mesos,andschwa/mesos,yuquanshan/customizedMesos,zmalik/mesos,craimbert/mesos,pwendell/mesos,wickman/mesos,andschwa/mesos,dforsyth/mesos,kaysoky/mesos