Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-ora2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-ora2
Commits
ec59f278
Commit
ec59f278
authored
Jan 27, 2014
by
Stephen Sanchez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some additional doc for the errors
parent
6c4e7445
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
apps/submissions/api.py
+18
-0
No files found.
apps/submissions/api.py
View file @
ec59f278
...
...
@@ -15,14 +15,32 @@ logger = logging.getLogger(__name__)
class
SubmissionInternalError
(
Exception
):
"""An error internal to the Submission API has occurred.
This error is raised when an error occurs that is not caused by incorrect
use of the API, but rather internal implementation of the underlying
services.
"""
pass
class
SubmissionNotFoundError
(
Exception
):
"""This error is raised when no submission is found for the request.
If a state is specified in a call to the API that results in no matching
Submissions, this error may be raised.
"""
pass
class
SubmissionRequestError
(
Exception
):
"""This error is raised when there was a request-specific error
This error is reserved for problems specific to the use of the API.
"""
def
__init__
(
self
,
field_errors
):
self
.
field_errors
=
copy
.
deepcopy
(
field_errors
)
super
(
SubmissionRequestError
,
self
)
.
__init__
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment