1
1
mirror of https://github.com/encode/django-rest-framework.git synced 2025-05-03 07:23:43 +03:00
Commit Graph

8 Commits

Author SHA1 Message Date
Craig Anderson
2ebd479759 Allow hashing of ErrorDetail to fix () 2018-04-20 15:32:37 +02:00
Carlton Gibson
1befab795a
Added generic 500 and 400 JSON error handlers. ()
* Added generic 500 and 400 JSON error handlers.
* Docs for generic error views.
2018-04-03 09:16:36 +02:00
Daniel Hahler
769bc1336f ErrorDetail: add __eq__/__ne__ and __repr__ ()
This adds `__eq__` to handle `code` in comparisons.

When comparing an ErrorDetail to a string (missing `code` there) the
ErrorDetail's `code` is ignored, but otherwise it is taken into account.
2018-01-30 08:45:09 +01:00
Ryan P Kilby
351503907c Add exception translation test () 2018-01-02 11:28:45 +01:00
Asif Saifuddin Auvi
1a741bb2a2 converted asserts of exceptions test to pytest () 2016-11-30 11:12:01 +00:00
Nicolas Delaby
97d848413e Fix support of get_full_details() for Throttled exceptions ()
Since `str` objects are immutable, appending to existing `str` creates
in fact a new `str` instance.

Thus `ErrorDetail.detail.code` attribute is lost after `str` concatenation operation.
2016-11-01 10:38:56 +00:00
Tom Christie
a3802504a0 Error codes ()
Add error codes to `APIException`
2016-10-11 10:25:21 +01:00
Kostya Esmukov
b6adfab9b2 Added test case for 2016-02-07 19:26:37 +03:00