Pass kwargs to exception to get better format of error message
Pass kwargs to exception to get better format of error message

If we do not pass kwargs to exception, the parameter will be deemed
as message and will be displayed directly. This is to pass kwargs to
InvalidTaskType and InvalidTaskStatus, to get better format of error
message.

Change-Id: Ibdc6acc966509b2b4e0b15df49a1d22b55e746c7

openstack/glance,openstack/glance,openstack/glance