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.getMessage() str

Get a extended description about the occured error.

Returns:

The error message

Return type:

str

Available:

InDesign® comet_pdf® Illustrator®

CometError.getCode() int

Get the error code as a number.

Returns:

The error code

Return type:

int

Available:

InDesign® comet_pdf® Illustrator®

CometError.getAdditionalInfo() str

Some functions provide additional information about the occured error.

Use this function to get this information.

Returns:

The additional information

Return type:

str

Available:

InDesign® comet_pdf® Illustrator®

Special methods

CometError.__init__(errorCode: int, errorMessage: str, additionalInfo: str = '')

Constructor for internal use.

Parameters:
  • errorCode (int) – The error code

  • errorMessage (str) – Extended error description

  • additionalInfo (str) – Additional information

CometError.__str__() 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