« Previous | Next » 

Revision 635cfd6e

ID635cfd6e06605f90be2486f2b750ef3752ee8d33

Added by Faidon Liambotis over 13 years ago

Convert faults to return an Exception subclass

Piston's rc from which fault is modeled doesn't do that; however, we
prefer doing things the Django (rather than the Piston) way and make
faults be an Exception subclass.

Piston may not do that but it actually gives us all the tools to do it,
with its HttpStatusCode Exception subclass that is catched where
appropriate.

This will allow, for example, for a get_instance_or_404() method to be
written.

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences