Examples of InvalidFieldException


Examples of com.mes.sdk.exception.InvalidFieldException

      if(fieldName.equals(requestFields[i])) {
          super.setParameter(fieldName, value);
        return this;
      }
    }
    throw new InvalidFieldException("The field \""+fieldName+"\" is not supported.");
  }
View Full Code Here

Examples of com.streak.logging.utils.InvalidFieldException

          String fieldName = exporter.getFieldName(fieldIndex);
          String fieldType = exporter.getFieldType(fieldIndex);
          Object fieldValue = exporter.getField(fieldName);
         
          if (fieldValue == null && !exporter.getFieldNullable(fieldIndex)) {
            throw new InvalidFieldException(
                "Exporter " + exporter.getClass().getCanonicalName() +
                " didn't return field for " + fieldName);
          }
          try {
            AnalysisUtility.putJsonValueFormatted(row, fieldName, fieldValue, fieldType);
View Full Code Here

Examples of com.youtube.vitess.vtgate.Exceptions.InvalidFieldException

    return contents.keySet().size();
  }

  public Object getObject(int index) throws InvalidFieldException {
    if (index >= size()) {
      throw new InvalidFieldException("invalid field index " + index);
    }
    return getObject(contents.keySet().asList().get(index));
  }
View Full Code Here

Examples of com.youtube.vitess.vtgate.Exceptions.InvalidFieldException

    return getObject(contents.keySet().asList().get(index));
  }

  public Object getObject(String fieldName) throws InvalidFieldException {
    if (!contents.containsKey(fieldName)) {
      throw new InvalidFieldException("invalid field name " + fieldName);
    }
    return contents.get(fieldName).getValue();
  }
View Full Code Here

Examples of com.youtube.vitess.vtgate.Exceptions.InvalidFieldException

  }

  private Object getAndCheckType(String fieldName, Class clazz) throws InvalidFieldException {
    Object o = getObject(fieldName);
    if (o != null && !clazz.isInstance(o)) {
      throw new InvalidFieldException(
          "type mismatch expected:" + clazz.getName() + " actual: " + o.getClass().getName());
    }
    return o;
  }
View Full Code Here

Examples of gnu.classpath.jdwp.exception.InvalidFieldException

            field.setAccessible(true); // Might be a private field
            field.set(null, value);
          }
        catch (IllegalArgumentException ex)
          {
            throw new InvalidFieldException(ex);
          }
        catch (IllegalAccessException ex)
          { // Since we set it as accessible this really shouldn't happen
            throw new JdwpInternalErrorException(ex);
          }
View Full Code Here

Examples of gnu.classpath.jdwp.exception.InvalidFieldException

                Value.writeTaggedValue(os, value);
              }
            catch (IllegalArgumentException ex)
              {
                // I suppose this would best qualify as an invalid field then
                throw new InvalidFieldException(ex);
              }
            catch (IllegalAccessException ex)
              {
                // Since we set it as accessible this really shouldn't happen
                throw new JdwpInternalErrorException(ex);
              }
          }
        else
          throw new InvalidFieldException(fieldId.getId());
      }
  }
View Full Code Here

Examples of gnu.classpath.jdwp.exception.InvalidFieldException

            Value.writeTaggedValue(os, value);
          }
        catch (IllegalArgumentException ex)
          {
            // I suppose this would best qualify as an invalid field then
            throw new InvalidFieldException(ex);
          }
        catch (IllegalAccessException ex)
          {
            // Since we set it as accessible this really shouldn't happen
            throw new JdwpInternalErrorException(ex);
View Full Code Here

Examples of gnu.classpath.jdwp.exception.InvalidFieldException

            field.set(obj, value);
          }
        catch (IllegalArgumentException ex)
          {
            // I suppose this would best qualify as an invalid field then
            throw new InvalidFieldException(ex);
          }
        catch (IllegalAccessException ex)
          {
            // Since we set it as accessible this really shouldn't happen
            throw new JdwpInternalErrorException(ex);
View Full Code Here

Examples of gnu.classpath.jdwp.exception.InvalidFieldException

  {
    if (refId == null || refId.getReference().get () == null)
      throw new InvalidClassException (refId.getId ());

    if (fid == null)
      throw new InvalidFieldException (fid.getId ());

    _refId = refId;
    _fieldId = fid;
  }
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.