Files
rdpy/rdpy/protocol/network/error.py
2013-10-17 17:59:05 +02:00

45 lines
984 B
Python

'''
@author: sylvain
'''
class InvalidValue(Exception):
'''
raise when invalid value type occured
'''
def __init__(self, message):
'''
constructor with message
'''
Exception.__init__(self, message)
class InvalidExpectedDataException(Exception):
'''
raise when expected data on network is invalid
'''
def __init__(self, message):
'''
constructor with message
'''
Exception.__init__(self, message)
class NegotiationFailure(Exception):
'''
raise when negotiation failure in different protocols
'''
def __init__(self, message):
'''
constructor with message
'''
Exception.__init__(self, message)
class InvalidType(Exception):
'''
raise when invalid value type occured
'''
def __init__(self, message):
'''
constructor with message
'''
Exception.__init__(self, message)