Enumerations

Error

class canlib.kvamemolibxml.Error(value)[source]

An enumeration.

ATTR_NOT_FOUND = -3

Failed to find an attribute in a node

ATTR_VALUE = -4

The attribute value is not correct, e.g. whitespace after a number.

DTD_VALIDATION = -11

The XML settings do not follow the DTD.

ELEM_NOT_FOUND = -5

Could not find a required element

FAIL = -1

Generic error

INTERNAL = -20

Internal errors, e.g. null pointers.

OK = 0

OK

POSTFIXEXPR = -9

The trigger expression could not be parsed

SCRIPT_ERROR = -12

t-script related errors, e.g. file not found.

VALUE_CONSECUTIVE = -8

The values are not consecutive; usually idx attributes

VALUE_RANGE = -6

The value is outside the allowed range

VALUE_UNIQUE = -7

The value is not unique; usually idx attributes

XML_PARSER = -10

The XML settings contain syntax errors.

classmethod from_number(number)[source]

Create Error object from number.

If the number is not defined in the class, return the number instead. This is used in order to be forward compatible with new codes in the dll.

New in version 1.19.

ValidationError

class canlib.kvamemolibxml.ValidationError(value)[source]

An enumeration.

ABORT = -2

Too many errors, validation aborted.

DISK_FULL_STARTS_LOG = -7

A trigger on disk full starts the logging.

ELEMENT_COUNT = -13

Too many or too few elements of this type.

EXPRESSION = -16

A general trigger expression found during parsing.

FAIL = -1

Generic error.

MULTIPLE_EXT_TRIGGER = -5

There are more than one external trigger defined.

MULTIPLE_START_TRIGGER = -6

There are more than one start up trigger defined.

NUM_OUT_OF_RANGE = -8

A numerical value is out of range.

OK = 0

OK

PARSER = -14

A general error found during parsing.

SCRIPT = -15

A general t-script error found during parsing.

SCRIPT_CONFLICT = -12

More than one active script is set as ‘primary’.

SCRIPT_NOT_FOUND = -9

A t-script file could not be opened.

SCRIPT_TOO_LARGE = -10

A t-script is too large for the configuration.

SCRIPT_TOO_MANY = -11

Too many active t-scripts for selected device.

SILENT_TRANSMIT = -3

Transmit lists used in silent mode.

UNDEFINED_TRIGGER = -4

An undefined trigger is used in an expression.

classmethod from_number(number)[source]

Create ValidationError object from number.

If the number is not defined in the class, return the number instead. This is used in order to be forward compatible with new codes in the dll.

New in version 1.19.

ValidationWarning

class canlib.kvamemolibxml.ValidationWarning(value)[source]

An enumeration.

ABORT = -100

Too many warnings, validation aborted.

DISK_FULL_AND_FIFO = -102

A trigger on disk full used with FIFO mode.

IGNORED_ELEMENT = -103

This XML element was ignored.

MULTIPLE_EXT_TRIGGER = -104

Using more than one external trigger requires firmware version 3.7 or better.

NO_ACTIVE_LOG = -101

No active logging detected.

classmethod from_number(number)[source]

Create ValidationWarning from number.

If the number is not defined in the class, return the number instead. This is used in order to be forward compatible with new codes in the dll.

New in version 1.19.