Handle errors from lr_handle_setopt(), lr_handle_getinfo(), lr_result_getinfo()
Handle errors from lr_handle_setopt(), lr_handle_getinfo(), lr_result_getinfo()

Implement templates which wraps lr_handle_setopt(), lr_handle_getinfo(), lr_result_getinfo().
These wrappers throw apropriate exception if wrapped function returns error.

Conan-Kudo/libhif,hughsie/libhif,rpm-software-management/libhif,rpm-software-management/libdnf,Conan-Kudo/libhif,rpm-software-management/libhif,rpm-software-management/libhif,rpm-software-management/libdnf,hughsie/libhif,rpm-software-management/libdnf,hughsie/libhif,Conan-Kudo/libhif,rpm-software-management/libdnf,hughsie/libhif,Conan-Kudo/libhif,rpm-software-management/libhif