Project

Profile

Help

Story #2382

closed

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

Added by dkliban@redhat.com over 7 years ago. Updated over 2 years ago.

Status:
CLOSED - DUPLICATE
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:

0%

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

Description

Ticket moved to GitHub: "pulp/pulpcore/1812":https://github.com/pulp/pulpcore/issues/1812


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

Also available in: Atom PDF