LangTag.Error¶
Fields¶
None
Methods¶
class |
|
|
|
|
|
|
|
|
|
|
Details¶
- class LangTag.Error¶
All the fields in the
LangTag.Error
structure are private to theLangTag.Error
implementation.- classmethod new()¶
- Returns:
a newly allocated
LangTag.Error
. it has to be freed withLangTag.Error.unref
().- Return type:
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:
- Return type:
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:
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).