@B338:R Changed to throw exception with relevant error messages.