Comment 8 for bug 1283872

Revision history for this message
Oleg Bondarev (obondarev) wrote :

>>> from webob import exc
>>> raise exc.HTTPForbidden()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
webob.exc.HTTPForbidden: Access was denied to this resource.
>>> raise exc.HTTPForbidden(explanation='Oops..')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
webob.exc.HTTPForbidden: Oops..
>>> raise exc.HTTPForbidden(detail='Oops..')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
webob.exc.HTTPForbidden: Oops..

so it works for both explanation and detail. What am I missing?