Project

Profile

Help

Story #2382

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

Added by dkliban@redhat.com about 3 years ago. Updated 8 months ago.

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

0%

Platform Release:
Blocks Release:
Backwards Incompatible:
No
Groomed:
No
Sprint Candidate:
No
Tags:
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
No
Sprint:

Description

DRF provides an APIException0 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 about 1 year ago

  • Sprint Candidate changed from Yes to No

#2 Updated by bmbouter 8 months ago

  • Tags deleted (Pulp 3)

Please register to edit this issue

Also available in: Atom PDF