add apiconnectionexception and  fix expection bug
add exception