Exceptions

LinError

exception canlib.linlib.LinError[source]

Base class for exceptions raised by the linlib class

Looks up the error text in the linlib dll and presents it together with the error code and the wrapper function that triggered the exception.

LinGeneralError

exception canlib.linlib.LinGeneralError(status)[source]

A linlib error that does not (yet) have its own Exception

Warning

Do not explicitly catch this error, instead catch LinError. Your error may at any point in the future get its own exception class, and so will no longer be of this type. The actual status code that raised any LinError can always be accessed through a status attribute.

LinNoMessageError

exception canlib.linlib.LinNoMessageError[source]

Bases: canlib.linlib.exceptions.LinError

No messages where availible

status = -1

LinNotImplementedError

exception canlib.linlib.LinNotImplementedError[source]

Bases: canlib.linlib.exceptions.LinError

Feature/function not implemented in the device

status = -26