Skip to content

Commit 80707b0

Browse files
irtazaakramfeanil
andauthored
Add exceptions NotFoundError and ProcessingError (#882)
* chore: add exceptions NotFoundError and ProcessingError * fix: update xblock/exceptions.py Co-authored-by: Feanil Patel <[email protected]> --------- Co-authored-by: Feanil Patel <[email protected]>
1 parent 44e7764 commit 80707b0

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

xblock/exceptions.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,3 +148,15 @@ class XBlockParseException(Exception):
148148
"""
149149
Raised if parsing the XBlock olx fails.
150150
"""
151+
152+
153+
class NotFoundError(Exception):
154+
"""
155+
Raised when a requested XBlock resource or entity cannot be found.
156+
"""
157+
158+
159+
class ProcessingError(Exception):
160+
"""
161+
Raised when an error occurs while processing an XBlock request.
162+
"""

0 commit comments

Comments
 (0)