Ignore:
Timestamp:
08/27/12 11:32:38 (12 years ago)
Author:
pharms
Message:
  • improved error handling in the case the GUI element type mapping is incomplete
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/quest-core-events/src/main/java/de/ugoe/cs/quest/eventcore/guimodel/GUIElementFactory.java

    r604 r610  
    1717import java.util.logging.Level; 
    1818import java.util.logging.Logger; 
    19  
    20 import de.ugoe.cs.util.console.Console; 
    2119 
    2220/** 
     
    149147                } 
    150148 
    151                 return guiElement; 
    152149            } 
    153150            catch (ClassNotFoundException e) { 
     
    208205            } 
    209206        } 
    210         if( guiElement==null ) { 
    211             Console.printerrln("could not find GUI element representing class " + specification.getType()); 
     207         
     208        if (guiElement == null ) { 
     209            Logger.getLogger(this.getClass().getName()).log 
     210                (Level.WARNING, "no class representing GUI elements of type " + 
     211                 specification.getType() + " found. Please extends GUI element mapping files."); 
     212            throw new GUIModelConfigurationException 
     213                ("no class representing GUI elements of type " + specification.getType() + 
     214                 " found. Please extends GUI element mapping files"); 
    212215        } 
    213216 
Note: See TracChangeset for help on using the changeset viewer.