Project

Profile

Help

Story #2382

Replace MissingResource exception with a subclass of rest_framework.exceptions.APIException

Added by dkliban@redhat.com almost 4 years ago. Updated over 1 year ago.

Status:
NEW
Priority:
Normal
Assignee:
-
Category:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:

Description

DRF provides an APIException[0] base class that should be used to create custom exceptions for Pulp's API. The new MissingResource exception should take two arguments: resource_type and resource_id.

[0] http://www.django-rest-framework.org/api-guide/exceptions/#apiexception

History

#1 Updated by amacdona@redhat.com almost 2 years ago

  • Sprint Candidate changed from Yes to No

#2 Updated by bmbouter over 1 year ago

  • Tags deleted (Pulp 3)

Please register to edit this issue

Also available in: Atom PDF