Examples of err()


Examples of civquest.io.Messages.err()

    } catch (FunctionException e) {
      // All exceptions that can occur at this time (2004-09-13) are catched above -
      // this catch-block is necessary because of the interface-declaration
      messages.err("QuadMap.Config", "civquest.swing.quadmap.Configuration.load says: ");
      messages.err("QuadMap.Config", "Some error occured: " + e);
       messages.err("QuadMap.Config", "===> CivQuest will abort now!");
       System.exit(-1);     
    }


    functionManager.activateAllFunctions(quadMap);
View Full Code Here

Examples of civquest.io.Messages.err()

   */
  public Image getImage(String name) {
    Messages messages = Messages.getMessages();
    if (subsetMap.get(name) != null) {
      // This shouldn't really happen
      messages.err("ImageSet", "You try to get " + name
             + " as an image although it exists also "
             + " as an subset-name!  ====> Aborting...");
      System.exit(-1);
      return null;
    } else if (imageMap.get(name) != null) {
View Full Code Here

Examples of civquest.io.Messages.err()

        String fileName = iterator.next();
        URL loadingURL = null;
        try {
          loadingURL = LoadingSource.getLoadingSource().resolve(baseURL, fileName);
        } catch (MalformedURLException e) {
          messages.err("ImageSet", "getImage says: " + e + " => Aborting NOW!");
          System.exit(-1);
        }

        if (LoadingSource.getLoadingSource().doesPathExist(loadingURL)) {
          // See discussion getImage <--> createImage in the Java-API
View Full Code Here

Examples of civquest.io.Messages.err()

          = new ImageSet(LoadingSource.getLoadingSource().resolve(baseURL, name
                   + LoadingSource.getLoadingSource().getDirectorySeparator()));
        subsetMap.put(name, newSubSet);
        return newSubSet;
      } catch (MalformedURLException e) {
        messages.err("ImageSet", "getSubImageSet says: " + e + " ===> Aborting NOW!");
        System.exit(-1);
      }

      // Can never be reached - is enforced by javac...
      return null;
View Full Code Here

Examples of civquest.io.Messages.err()

        Iterator<Unit> unitsIt = field.getUnitIterator();
        if (unitsIt.hasNext()) {
            Unit unit = unitsIt.next();
            if (!unit.getOwner().equals(nation)) {
                messages.err("ConstructCity", "You try to build a city " +
                        "on a field where another nation's unit is located.");
                return;
            }
        }
       
View Full Code Here

Examples of civquest.io.Messages.err()

            }
        }
       
        if (field.getCityOnField() != null &&
                !field.getCityOnField().getOwner().equals(nation)) {
            messages.err("ConstructCity", "You try to build a city " +
            "on a field where another nation's city is located.");
            return;
        }

        City city = new City(field, "New City");
View Full Code Here

Examples of civquest.io.Messages.err()

                                         prefix);

      Messages messages = Messages.getMessages();
                             
       if (newFunctionName == null) {
        messages.err("AbstractFieldView", "constructFVFunctionActions says: "
               + oldFunctionName + " does not start with "
               + prefix);
        messages.err("AbstractFieldView", "--> Aborting...");
         System.exit(-1);
       } else {
View Full Code Here

Examples of civquest.io.Messages.err()

                             
       if (newFunctionName == null) {
        messages.err("AbstractFieldView", "constructFVFunctionActions says: "
               + oldFunctionName + " does not start with "
               + prefix);
        messages.err("AbstractFieldView", "--> Aborting...");
         System.exit(-1);
       } else {
         FieldViewFunctionAction functionAction
           = new FieldViewFunctionAction(manager, newFunctionName);
         function.setAction(functionAction);    
View Full Code Here

Examples of civquest.io.Messages.err()

      return new QuadIsoLayTerrainView(position, this, quadMap,
                       registry, tilesIsoImageSet,
                       size, gameData);
    } else {
      Messages messages = Messages.getMessages();
      messages.err("QuadIsoLayeredFV", whichTerrainView
             + " is not a valid terrain-view!!!");
      messages.err("QuadIsoLayeredFV",
             "--> Using LayeredTerrainView instead");
      return new QuadIsoLayTerrainView(position, this, quadMap,
                       registry, tilesIsoImageSet,
View Full Code Here

Examples of org.jboss.aesh.console.Console.err()

            else
            {
               // Display the error messages
               for (String error : errors)
               {
                  console.err().println("**ERROR**: " + error);
               }
            }
         }
         catch (Exception e)
         {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.