Christian Scholz
2008-08-28 20:19:43 UTC
Hi!
I just checked in some use of exceptions in caps.py and some tests
testing them. You can find the exceptions by searching for "exc" and you
can find example of how to catch them (or how they actually look like)
in tests/caps.txt at the bottom.
I also added some deserialization exception at the bottom of caps.py and
separate tests for GET and POST.
Those exceptions now also have a string representation which prints out
more details instead of just "ResourceNotFound".
Included are also the logging changes.
Next step might be to add some more high level caps like for catching a
login failure.
cheers,
Christian
I just checked in some use of exceptions in caps.py and some tests
testing them. You can find the exceptions by searching for "exc" and you
can find example of how to catch them (or how they actually look like)
in tests/caps.txt at the bottom.
I also added some deserialization exception at the bottom of caps.py and
separate tests for GET and POST.
Those exceptions now also have a string representation which prints out
more details instead of just "ResourceNotFound".
Included are also the logging changes.
Next step might be to add some more high level caps like for catching a
login failure.
cheers,
Christian