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)