invalid class selector throw their own exception