Package java.lang

Examples of java.lang.RuntimeException


      values = values.trim();
      StringTokenizer st = new StringTokenizer( values , xmlWhitespace );
      while ( st . hasMoreElements() ) {
         String str = (String) st . nextElement();
         if ( str . equals("") || !isNm( "A"+str , null ).booleanValue() ) {
            throw new RuntimeException("Attempt to create enumeration with non-NMTOKEN value >" + str + "<\n");
         }
         sb . append( str );
         sb . append( ";" );
      }
      setSubProp( sb . toString() , ENUM , Property.constraint );
View Full Code Here


      }
      setSubProp( sb . toString() , ENUM , Property.constraint );
   }
   /** Exclusive bounds not supported */
   public void setMaxExclusive(){
      throw new RuntimeException("Exclusive string length bounds not supported (yet) ");
   }
View Full Code Here

      enableSubProp( "BasicStringProperty.MAX_LEN" );
      setSubPropnew Integer(m), BasicStringProperty.MAX_LEN , Property.constraint );
   }
   /** Exclusive bounds not supported */
   public void setMinExclusive(){
      throw new RuntimeException("Exclusive string length bounds not supported (yet) ");
   }
View Full Code Here

 
  public void addFlag(String flagName)
  {
    if ( flags.containsKey(flagName) || params.containsKey(flagName) )
    {
      throw new RuntimeException("The command line arg " + flagName + " is already in use!");
    }
    flags.put(flagName, false);
  }
View Full Code Here

 
  public void addParam(String paramName)
  {
    if ( flags.containsKey(paramName) || params.containsKey(paramName) )
    {
      throw new RuntimeException("The command line arg " + paramName + " is already in use!");
    }
    params.put(paramName, null);   
  }
View Full Code Here

    {
      return (params.get(argName) != null);
    }
    else
    {
      throw new RuntimeException("The command line arg " + argName + " does not exist!");           
    }
  }
View Full Code Here

    {
      return params.get(argName);
    }
    else
    {
      throw new RuntimeException("The command line arg " + argName + " does not exist!");           
    }   
  }
View Full Code Here

  logger.debug("Evaluating CurrinFuntion " + _function_to_run);

  try {
      m.run(_function_to_run, _param_refs);
  } catch (InterpreterException ie) {
      throw new RuntimeException(ie.getMessage());
  }

  return m.getResult().getReference(); //FIXME
    }
View Full Code Here

public static class CtorReader extends AFn{
  public Object invoke(Object reader, Object firstChar){
    PushbackReader r = (PushbackReader) reader;
    Object name = read(r, true, null, false);
    if (!(name instanceof Symbol))
      throw new RuntimeException("Reader tag must be a symbol");
    Symbol sym = (Symbol)name;
    return sym.getName().contains(".") ? readRecord(r, sym) : readTagged(r, sym);
  }
View Full Code Here

    if(data_reader == null){
    IFn default_reader = (IFn)RT.DEFAULT_DATA_READER_FN.deref();
    if(default_reader != null)
      return default_reader.invoke(tag, o);
    else
      throw new RuntimeException("No reader function for tag " + tag.toString());
    }
    }

    return data_reader.invoke(o);
  }
View Full Code Here

TOP

Related Classes of java.lang.RuntimeException

Copyright © 2018 www.massapicom. 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.