Use exceptions for error handling
authorIra W. Snyder <devel@irasnyder.com>
Fri, 31 Oct 2008 03:47:46 +0000 (20:47 -0700)
committerIra W. Snyder <devel@irasnyder.com>
Fri, 31 Oct 2008 03:47:46 +0000 (20:47 -0700)
commit3e0a5dd7c7549636eb70c6a641987da66742f1db
tree2e8a97c9ba574e5db4fed2f6b3f3ead5b2e0f59d
parentf66165cb39c650eb1cec0b24e07940760d602ffa
Use exceptions for error handling

The previous error handling strategy was very Linux kernel like, showing
influence from what I was working on while I designed this program.

Refactor the program to use exceptions, which significantly reduces the
amount of code needed for error handling. Best practices are now
followed: we only catch exceptions where we need to log a message and
rethrow, or for a complete unit of work.

Signed-off-by: Ira W. Snyder <devel@irasnyder.com>
PAR2Set/Base.py
PAR2Set/ExtractFirstBase.py
PAR2Set/Join.py
PAR2Set/NewRAR.py
PAR2Set/NoExtract.py
PAR2Set/OldRAR.py
PAR2Set/ZIP.py
RarslaveDetector.py
rarslave.py
rsutil/common.py