Let ValidationError, RequestError have a common MegaError parent.

This commit is contained in:
voussoir 2021-09-22 11:17:59 -07:00
parent 57b7b08101
commit 0203246582
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -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
""" """