Examples of ValueFormatException


Examples of javax.jcr.ValueFormatException

      {
         return date.getTimeInMillis();
      }
      else
      {
         throw new ValueFormatException("empty value");
      }
   }
View Full Code Here

Examples of org.apache.accumulo.core.iterators.ValueFormatException

    @Override
    public BigDecimal decode(byte[] b) throws ValueFormatException {
      try {
        return new BigDecimal(new String(b, Constants.UTF8));
      } catch (NumberFormatException nfe) {
        throw new ValueFormatException(nfe);
      }
    }
View Full Code Here

Examples of org.jboss.dna.graph.property.ValueFormatException

        if (value == null) return null;
        try {
            UUID uuid = UUID.fromString(value);
            return new UuidReference(uuid);
        } catch (IllegalArgumentException err) {
            throw new ValueFormatException(value, getPropertyType(),
                                           GraphI18n.errorConvertingType.text(String.class.getSimpleName(),
                                                                              Reference.class.getSimpleName(),
                                                                              value), err);
        }
    }
View Full Code Here

Examples of org.modeshape.jcr.value.ValueFormatException

            // A relative name of length 1 is converted to a name
            Path.Segment segment = value.getLastSegment();
            // Can only convert if the path has no SNS index ...
            if (!segment.hasIndex()) return segment.getName();
        }
        throw new ValueFormatException(value, getPropertyType(), GraphI18n.errorConvertingType.text(Path.class.getSimpleName(),
                                                                                                    Name.class.getSimpleName(),
                                                                                                    value));
    }
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.