code: public static void assertVarValue( Object val) throws IllegalArgumentException
      {
      if( !isVarValue( val))
        {
        throw new IllegalArgumentException( "\"" + String.valueOf( val) + "\"" + " is not a valid variable value");
        }
      }
docs: Throws an exception if the given string is not a valid variable value.