Fixed compiler warnings about exception handling: Use re-throw semantic instead of copying exception objects.