Added some exceptions for when the obtainAsset() method is used with
invalid arguments.