LangTag.Error

Fields

None

Methods

class

new ()

clear ()

is_set (type)

print_ (type)

ref ()

unref ()

Details

class LangTag.Error

All the fields in the LangTag.Error structure are private to the LangTag.Error implementation.

classmethod new()
Returns:

a newly allocated LangTag.Error. it has to be freed with LangTag.Error.unref().

Return type:

LangTag.Error

Creates LangTag.Error object. this function is protected and not supposed to use in applications directly. Use lt_error_set().

clear()

Clean up all of the errors in self.

is_set(type)
Parameters:

type (LangTag.ErrorType) – a #LtErrorype_t

Returns:

True if any, otherwise False

Return type:

int

Checks if self contains type of errors. if #LT_ERR_ANY is set to type, all the types of the errors are targeted. otherwise the result is filtered out by type.

print_(type)
Parameters:

type (LangTag.ErrorType) – a #LtErrorype_t

Output the error messages in self according to type.

ref()
Returns:

the same self object.

Return type:

LangTag.Error

Inscreases the reference count of self.

unref()

Decreases the reference count of self. when its reference count drops to 0, the object is finalized (i.e. its memory is freed).