sin throws sqlexception