Let ValidationError, RequestError have a common MegaError parent.
This commit is contained in:
parent
57b7b08101
commit
0203246582
1 changed files with 5 additions and 2 deletions
|
@ -1,10 +1,13 @@
|
||||||
class ValidationError(Exception):
|
class MegaError(Exception):
|
||||||
|
pass
|
||||||
|
|
||||||
|
class ValidationError(MegaError):
|
||||||
"""
|
"""
|
||||||
Error in validation stage
|
Error in validation stage
|
||||||
"""
|
"""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
class RequestError(Exception):
|
class RequestError(MegaError):
|
||||||
"""
|
"""
|
||||||
Error in API request
|
Error in API request
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue