def to_remote_error(error):
 exc_info = (type(error), error, None)
 serialized = rpc_common.serialize_remote_exception(exc_info)
 remote_error = rpc_common.deserialize_remote_exception(serialized, ['heat.common.exception'])
 return remote_error

def to_remote_error ( error ) : exc_info = ( type ( error ) , error , None ) serialized = rpc_common . serialize_remote_exception ( exc_info ) remote_error = rpc_common . deserialize_remote_exception ( serialized , [ 'heat.common.exception' ] ) return remote_error
converts the given exception to the one with the _remote suffix .