static void SimulationStep(ref TransportLine _this, ushort lineID) { try { _this.SimulationStep(lineID); } catch (Exception e) { string info = $"An exception occured during TransportLine simulation step.\n" + $"Line: {Enum.GetName(typeof(TransportInfo.TransportType), _this.Info.m_transportType)} {_this.m_lineNumber}\n" + $"LineID: {lineID}\nSeverity: High"; HealkitException e2 = new HealkitException(info, e); e2.m_supperessMsg = "Suppress this exception"; UIView.ForwardException(e2); } }