Changeset 49 in tmcsimulator for trunk/src/tmcsim/cadsimulator/CADSimulator.java


Ignore:
Timestamp:
07/02/2016 09:43:59 AM (10 years ago)
Author:
jdalbey
Message:

CADSimulatorViewer.java Add log message for missing application.properties. Update build.xml.

File:
1 edited

Legend:

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

    r44 r49  
    190190            cadSimulatorProperties = new Properties(); 
    191191            cadSimulatorProperties.load(new FileInputStream(propertiesFile)); 
     192            cadSimLogger.logp(Level.INFO, "CADSimulator", "Constructor", 
     193                    "Properties loaded from " + propertiesFile); 
    192194        } catch (Exception e) 
    193195        { 
     
    215217                Class uiClass = Class.forName(userInterfaceName); 
    216218                theViewer = (CADViewer) uiClass.newInstance(); 
    217             } catch (Throwable exc) 
     219            } catch (Exception exc) 
    218220            { 
    219221                cadSimLogger.logp(Level.SEVERE, "CADSimulator", "Constructor", 
    220                         "Unable to instantiate user interface: " + userInterfaceName); 
     222                        "Unable to instantiate user interface: " + userInterfaceName 
     223                        + " " + exc); 
    221224                throw new SimulationException(SimulationException.INITIALIZE_ERROR); 
    222225            } 
Note: See TracChangeset for help on using the changeset viewer.