voipms-python/voipms/base/exceptions.py
2019-08-17 22:02:44 -04:00

14 lines
328 B
Python

from __future__ import absolute_import, division, print_function
import sys
class VoipException(Exception):
pass
class VoipRestException(VoipException):
def __init__(self, status, message=""):
self.msg = message
self.status = status
def __str__(self):
return self.msg or "<empty message>"