Closed inklesspen closed 9 years ago
You can override the exception view if you commit the configurator first. And of course you can register exception views for more specific exceptions as you wish without any commit.
Oh, cool. Yep, that works swimmingly, thanks!
We use pyramid_rpc at my company and we have some unique exception handling requirements (basically to help us match up exceptions on the client and server side). I wanted to register an exception view for
Exception
, but I couldn't becauseadd_jsonrpc_endpoint
already does that.(I worked around the issue by registering an exception view for
StandardError
, which is a superclass of nearly all Python--provided exceptions (and we already have a base class for our service's exceptions), but it would be nice to be able to telladd_jsonrpc_endpoint
to skip the exception view.)