Files
notifications-api/app/clients/sms/__init__.py
Martyn Inglis 376f8355cb Updated clients to have a more robust error handling
- fire text and omg much more similar. Ready to be combined.
- Error handling now for JSON valid responses
2016-09-22 17:18:05 +01:00

26 lines
560 B
Python

from app.clients import (Client, ClientException)
class SmsClientResponseException(ClientException):
'''
Base Exception for SmsClientsResponses
'''
def __init__(self, message):
self.message = message
def __str__(self):
return "Message {}".format(self.message)
class SmsClient(Client):
'''
Base Sms client for sending smss.
'''
def send_sms(self, *args, **kwargs):
raise NotImplemented('TODO Need to implement.')
def get_name(self):
raise NotImplemented('TODO Need to implement.')