Exemplo n.º 1
0
        private static void JBC_StationIDError(long stationID, JBC_Connect.Cerror err)
        {
            Debug.WriteLine("ERR STATION ID:" + stationID + " Error: " + err.GetMsg());
            jbc_api.UserError -= JBC_StationIDError;

            Assert.AreEqual(Cerror.cErrorCodes.STATION_ID_NOT_FOUND, err.GetCode());
        }
Exemplo n.º 2
0
        private static void JBC_StationTempError(long stationID, JBC_Connect.Cerror err)
        {
            Debug.WriteLine("ERR STATION ID:" + stationID + " Error: " + err.GetMsg());
            jbc_api.UserError -= JBC_StationTempError;


            Assert.AreEqual(Cerror.cErrorCodes.TEMPERATURE_OUT_OF_RANGE, err.GetCode());
        }
Exemplo n.º 3
0
 private static void JBC_UserError(long stationID, JBC_Connect.Cerror err)
 {
     Debug.WriteLine("ERR STATION ID:" + stationID + " ERROR MSG: " + err.GetMsg());
     //FIXME There is something in the error manager
     //Assert.AreEqual("ERROR", "");
     if (err.GetCode() != Cerror.cErrorCodes.FUNCTION_NOT_SUPPORTED)
     {
         Assert.AreEqual("ERROR", "");
     }
 }
Exemplo n.º 4
0
        private static void JBC_Continues_Error_Handler2(long stationID, JBC_Connect.Cerror err)
        {
            Debug.WriteLine("ERR STATION ID:" + stationID + " ERROR CODE: " + err.GetCode() + " ERROR MSG: " + err.GetMsg());
            jbc_api.UserError -= JBC_Continues_Error_Handler2;


            if (err.GetCode() != Cerror.cErrorCodes.COMMUNICATION_ERROR)
            {
                Assert.AreEqual("ERROR", "");
            }
        }
Exemplo n.º 5
0
        private static void JBC_UserNotSupported(long stationID, JBC_Connect.Cerror err)
        {
            Debug.WriteLine("ERR STATION ID:" + stationID + " ERROR MSG: " + err.GetMsg());
            jbc_api.UserError -= JBC_UserNotSupported;


            if (err.GetCode() != Cerror.cErrorCodes.FUNCTION_NOT_SUPPORTED)
            {
                //FIXME: Deal with not supported error
                Assert.AreEqual("ERROR", "");
            }
        }
Exemplo n.º 6
0
        // Continuous Mode Methods
        private static void JBC_Continues_Error_Handler1(long stationID, JBC_Connect.Cerror err)
        {
            Debug.WriteLine("ERR STATION ID:" + stationID + " ERROR CODE: " + err.GetCode() + " ERROR MSG: " + err.GetMsg());
            jbc_api.UserError -= JBC_Continues_Error_Handler1;


            if (err.GetCode() != Cerror.cErrorCodes.CONTINUOUS_MODE_ON_WITHOUT_PORTS)
            {
                //FIXME: Deal with not supported error
                Assert.AreEqual("ERROR", "");
            }
        }
Exemplo n.º 7
0
        private static void JBC_PortError_Handler(long stationID, JBC_Connect.Cerror err)
        {
            Debug.WriteLine("ERR STATION ID:" + stationID + " ERROR MSG: " + err.GetMsg());

            jbc_api.UserError -= JBC_PortError_Handler;


            if (err.GetCode() != Cerror.cErrorCodes.FUNCTION_NOT_SUPPORTED &&
                err.GetCode() != Cerror.cErrorCodes.TOOL_NOT_SUPPORTED)
            {
                Assert.AreEqual("ERROR PORT HANDLER", "");
            }
        }
Exemplo n.º 8
0
		private void JBC_UserError(long stationID, JBC_Connect.Cerror err)
		{
			//showing the error
			MessageBox.Show(err.GetMsg());
		}