4.7. Warnings

The following warnings are pywbem specific warnings that can be issued by the WBEM client library.

class pywbem.Warning(*args, **kwargs)[source]

Base class for pywbem specific warnings.

Parameters
  • *args – Any other positional arguments are passed to Exception.

  • conn_id (connection id) – Connection ID of the connection in whose context the error happened. Omitted or None if the error did not happen in context of any connection, or if the connection context was not known. Must be specified as a keyword argument.

Attributes:

conn_id

Connection ID of the connection in whose context the error happened.

conn_str

String that identifies the connection in exception messages.

Methods:

with_traceback

Exception.with_traceback(tb) -- set self.__traceback__ to tb and return self.

class pywbem.ToleratedServerIssueWarning(*args, **kwargs)[source]

This warning indicates an issue with the WBEM server that has been tolerated by pywbem.

Parameters
  • *args – Any other positional arguments are passed to Exception.

  • conn_id (connection id) – Connection ID of the connection in whose context the error happened. Omitted or None if the error did not happen in context of any connection, or if the connection context was not known. Must be specified as a keyword argument.

Attributes:

conn_id

Connection ID of the connection in whose context the error happened.

conn_str

String that identifies the connection in exception messages.

Methods:

with_traceback

Exception.with_traceback(tb) -- set self.__traceback__ to tb and return self.