Convert the API URL system from an App based one
to a resource based one. Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
16
mayan/apps/rest_api/exceptions.py
Normal file
16
mayan/apps/rest_api/exceptions.py
Normal file
@@ -0,0 +1,16 @@
|
||||
from __future__ import unicode_literals
|
||||
|
||||
|
||||
class APIError(Exception):
|
||||
"""
|
||||
Base exception for the API app
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
class APIResourcePatternError(APIError):
|
||||
"""
|
||||
Raised when an app tries to override an existing URL regular expression
|
||||
pattern
|
||||
"""
|
||||
pass
|
||||
Reference in New Issue
Block a user