Replace thow ConnectionException to Exception