Changeset 355 in tmcsimulator


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

CADServer.java added additional error messages.

Location:
trunk/src/tmcsim
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/tmcsim/application.properties

    r353 r355  
    1 #Tue, 02 Apr 2019 19:31:19 -0700 
     1#Wed, 03 Apr 2019 18:19:01 -0700 
    22 
    3 Application.revision=351 
     3Application.revision=354 
    44 
    5 Application.buildnumber=115 
     5Application.buildnumber=119 
  • 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(); 
  • trunk/src/tmcsim/common/SimulationException.java

    r310 r355  
    3939     */ 
    4040    public static final String INITIALIZE_ERROR = "Unable to complete initialization, program exiting."; 
     41    /**  
     42     * Exception error when reading a properties file fails.<br> 
     43     */ 
     44    public static final String PROPERTY_READ_ERROR = "Error reading CAD Server properties file. "; 
     45    public static final String PROPERTY_MISSING_ERROR = "Missing property for CAD Server user interface. "; 
     46    public static final String INSTANTIATION_FAILURE = "Unable to instantiate CAD Server user interface. "; 
    4147 
    4248    /**  
Note: See TracChangeset for help on using the changeset viewer.