Document API IEC60730 Library
Public Member Functions | Public Attributes | List of all members
errors.JLinkException Class Reference

Public Member Functions

def __init__ (self, code)
 
- Public Member Functions inherited from enums.JLinkGlobalErrors
def to_string (cls, error_code)
 

Public Attributes

 code
 
 message
 

Additional Inherited Members

- Static Public Attributes inherited from enums.JLinkGlobalErrors
int UNSPECIFIED_ERROR = -1
 
int EMU_NO_CONNECTION = -256
 
int EMU_COMM_ERROR = -257
 
int DLL_NOT_OPEN = -258
 
int VCC_FAILURE = -259
 
int INVALID_HANDLE = -260
 
int NO_CPU_FOUND = -261
 
int EMU_FEATURE_UNSUPPORTED = -262
 
int EMU_NO_MEMORY = -263
 
int TIF_STATUS_ERROR = -264
 
int FLASH_PROG_COMPARE_FAILED = -265
 
int FLASH_PROG_PROGRAM_FAILED = -266
 
int FLASH_PROG_VERIFY_FAILED = -267
 
int OPEN_FILE_FAILED = -268
 
int UNKNOWN_FILE_FORMAT = -269
 
int WRITE_TARGET_MEMORY_FAILED = -270
 
int DEVICE_FEATURE_NOT_SUPPORTED = -271
 
int WRONG_USER_CONFIG = -272
 
int NO_TARGET_DEVICE_SELECTED = -273
 
int CPU_IN_LOW_POWER_MODE = -274
 

Detailed Description

Generic J-Link exception.

Constructor & Destructor Documentation

◆ __init__()

def errors.JLinkException.__init__ (   self,
  code 
)
Generates an exception by coercing the given ``code`` to an error
string if is a number, otherwise assumes it is the message.

Args:
  self (JLinkException): the 'JLinkException' instance
  code (object): message or error code

Returns:
  ``None``

The documentation for this class was generated from the following file: