PyANGKernel.GKCommandReport

class GKCommandReport

An error during a command execution

Details

A command report is created in the GKCommand::init method to tell the caller that a problem happen with the command. If the errorCode is greater than 0 means that was an error and the command will be discarded (not executed and deleted). If the errorCode is 0 that means that was a warning and the command will be executed.

A possible reasons to issue a command report is when trying to manipulate an object that cannot be modified.

Synopsis

Methods

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

PyANGKernel.GKCommandReport.errorCode
PyANGKernel.GKCommandReport.description
__init__(code, str)
Parameters:
  • code – int

  • str – str

getDescription()
Return type:

str

getErrorCode()
Return type:

int

setDescription(description)
Parameters:

description – str

setErrorCode(errorCode)
Parameters:

errorCode – int