Added properties and exception - connection.py