コード例 #1
0
ファイル: trex_client.py プロジェクト: Meghana-S/trex-core
 def _handle_AppError_exception(self, err):
     """
     This private method triggres the TRex dedicated exception generation in case a general ProtocolError has been raised.
     """
     # handle known exceptions based on known error codes.
     # if error code is not known, raise ProtocolError
     raise exception_handler.gen_exception(err)
コード例 #2
0
 def _handle_AppError_exception(self, err):
     """
     This private method triggres the TRex dedicated exception generation in case a general ProtocolError has been raised.
     """
     # handle known exceptions based on known error codes.
     # if error code is not known, raise ProtocolError
     raise exception_handler.gen_exception(err)