Added Endpoint so that conn parameters can be changed
Now substitutes exceptions whose classes cannot be found