newv


Description:

public static Object newv (Type object_type, Parameter[] parameters, Cancellable? cancellable = null) throws Error

Helper function for constructing Initable object.

This is similar to newv but also initializes the object and returns null, setting an error on failure.

Parameters:

object_type

a Type supporting Initable.

parameters

the parameters to use to construct the object

cancellable

optional Cancellable object, null to ignore.

n_parameters

the number of parameters in parameters

Returns:

a newly allocated Object, or null on error