comet.CometError

class comet.CometError
Inherits:

Exception

The exception raised by most comet functions when an internal error occurs. Since there are several hundred of internal errors that can occur this class sums them all up instead of having one error class for each possible error.

Methods

CometError.__init__(errorCode, errorMessage, additionalInfo='')

Constructor for internal use.

Parameters
  • errorCode (int) – The error code

  • errorMessage (str) – Extended error description

  • additionalInfo (str) – Additional information

CometError.__str__()

Get a string representation of this error which contains error code and an error description if available.

Returns

A full error description including error code, message and additional information

Return type

str

CometError.getMessage()

Get a extended description about the occured error.

Returns

The error message

Return type

str

Available

CometError.getCode()

Get the error code as a number.

Returns

The error code

Return type

int

Available

CometError.getAdditionalInfo()

Some functions provide additional information about the occured error.

Use this function to get this information.

Returns

The additional information

Return type

str

Available