"""Custom Exceptions.""" class RequestError(Exception): """Request Error Exception class.""" def __init__(self, message, error_code, status=500): """Constructor. Args: message (str/dict): Response message """ super().__init__() self.message = message self.error_code = error_code self.status = status def __str__(self): """Convert message to string.""" return str(self.message)