Code example for RuntimeException

0
	 
	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);
	} 
	 
	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);		
	} 
	 
	public boolean argSpecified(String argName)
Contextual code suggestions in your IDE  Get Codota for Java