class APIException(Exception): (source)
Known subclasses: rest_framework.exceptions.AuthenticationFailed
, rest_framework.exceptions.MethodNotAllowed
, rest_framework.exceptions.NotAcceptable
, rest_framework.exceptions.NotAuthenticated
, rest_framework.exceptions.NotFound
, rest_framework.exceptions.ParseError
, rest_framework.exceptions.PermissionDenied
, rest_framework.exceptions.Throttled
, rest_framework.exceptions.UnsupportedMediaType
, rest_framework.exceptions.ValidationError
Base class for REST framework exceptions. Subclasses should provide `.status_code` and `.default_detail` properties.
Method | __init__ |
Undocumented |
Method | __str__ |
Undocumented |
Method | get |
Return only the code part of the error details. |
Method | get |
Return both the message & code parts of the error details. |
Class Variable | default |
Undocumented |
Class Variable | default |
Undocumented |
Instance Variable | detail |
Undocumented |
Return both the message & code parts of the error details. Eg. {"name": [{"message": "This field is required.", "code": "required"}]}
rest_framework.exceptions.AuthenticationFailed
, rest_framework.exceptions.MethodNotAllowed
, rest_framework.exceptions.NotAcceptable
, rest_framework.exceptions.NotAuthenticated
, rest_framework.exceptions.NotFound
, rest_framework.exceptions.ParseError
, rest_framework.exceptions.PermissionDenied
, rest_framework.exceptions.Throttled
, rest_framework.exceptions.UnsupportedMediaType
, rest_framework.exceptions.ValidationError
Undocumented
rest_framework.exceptions.AuthenticationFailed
, rest_framework.exceptions.MethodNotAllowed
, rest_framework.exceptions.NotAcceptable
, rest_framework.exceptions.NotAuthenticated
, rest_framework.exceptions.NotFound
, rest_framework.exceptions.ParseError
, rest_framework.exceptions.PermissionDenied
, rest_framework.exceptions.Throttled
, rest_framework.exceptions.UnsupportedMediaType
, rest_framework.exceptions.ValidationError
Undocumented