uds.utilities.custom_warnings

Custom warnings that are used within the project.

Exceptions

UnusedArgumentWarning

At least one argument (that was provided by user) will be ignored.

ValueWarning

Value of the argument is out of typical range, but the package is able to handle it.

UnexpectedPacketReceptionWarning

An unexpected packet was received.

NewMessageReceptionWarning

A new UDS message transmission was started while in process of receiving UDS message.

Module Contents

exception uds.utilities.custom_warnings.UnusedArgumentWarning[source]

Bases: Warning

Inheritance diagram of uds.utilities.custom_warnings.UnusedArgumentWarning

At least one argument (that was provided by user) will be ignored.

It is meant to be used in less strict situation than UnusedArgumentError.

Example:

A function takes two parameters: a, b

Let’s assume that parameter a must always be provided. Parameter b is used only when a == 1.

The function would warn (using this warning) when both parameters are provided but a != 1.

Initialize self. See help(type(self)) for accurate signature.

exception uds.utilities.custom_warnings.ValueWarning[source]

Bases: Warning

Inheritance diagram of uds.utilities.custom_warnings.ValueWarning

Value of the argument is out of typical range, but the package is able to handle it.

Initialize self. See help(type(self)) for accurate signature.

exception uds.utilities.custom_warnings.UnexpectedPacketReceptionWarning[source]

Bases: RuntimeWarning

Inheritance diagram of uds.utilities.custom_warnings.UnexpectedPacketReceptionWarning

An unexpected packet was received.

Initialize self. See help(type(self)) for accurate signature.

exception uds.utilities.custom_warnings.NewMessageReceptionWarning[source]

Bases: RuntimeWarning

Inheritance diagram of uds.utilities.custom_warnings.NewMessageReceptionWarning

A new UDS message transmission was started while in process of receiving UDS message.

Initialize self. See help(type(self)) for accurate signature.