Changeset 355 in tmcsimulator for trunk/src/tmcsim/cadsimulator/CADServer.java


Ignore:
Timestamp:
04/03/2019 04:52:29 PM (7 years ago)
Author:
jdalbey
Message:

CADServer.java added additional error messages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/tmcsim/cadsimulator/CADServer.java

    r210 r355  
    207207            cadSimLogger.logp(Level.SEVERE, "CADSimulator", "Constructor", 
    208208                    "Exception in reading properties file.", e); 
    209  
    210             throw new SimulationException(SimulationException.INITIALIZE_ERROR, e); 
     209            JOptionPane.showMessageDialog(new JWindow(), e.getMessage() + 
     210                    "\nUser.Dir=" + System.getProperty("user.dir"), 
     211                    "Fatal Error - Exiting", JOptionPane.ERROR_MESSAGE); 
     212                         
     213            throw new SimulationException(SimulationException.PROPERTY_READ_ERROR, e); 
    211214        } 
    212215 
     
    222225                cadSimLogger.logp(Level.SEVERE, "CADSimulator", "Constructor", 
    223226                        propertiesFile + " missing property for user interface."); 
    224                 throw new SimulationException(SimulationException.INITIALIZE_ERROR); 
     227                throw new SimulationException(SimulationException.PROPERTY_MISSING_ERROR); 
    225228            } 
    226229            try 
     
    233236                        "Unable to instantiate user interface: " + userInterfaceName 
    234237                        + " " + exc); 
    235                 throw new SimulationException(SimulationException.INITIALIZE_ERROR); 
     238                throw new SimulationException(SimulationException.INSTANTIATION_FAILURE); 
    236239            } 
    237240            theModel = new CADSimulatorState(); 
Note: See TracChangeset for help on using the changeset viewer.