Raise exception if the provided class is abstract