Package edu.uga.galileo.voci.exception

Examples of edu.uga.galileo.voci.exception.DataTypeMismatchException


  protected <T> T getPreparedStatementValue(Class<T> c)
      throws DataTypeMismatchException {
    try {
      return ((T) value);
    } catch (ClassCastException e) {
      throw new DataTypeMismatchException("Can't make a "
          + c.getClass().getComponentType()
          + " from a QueryParserElement." + columnType);
    }
  }
View Full Code Here


   */
  protected String getPSStringValue() throws DataTypeMismatchException {
    try {
      return ((String) value);
    } catch (ClassCastException e) {
      throw new DataTypeMismatchException(
          "Can't make a String from a QueryParserElement."
              + columnType);
    }
  }
View Full Code Here

    try {
      for (Object obj : results) {
        toReturn.add((T) obj);
      }
    } catch (ClassCastException e) {
      throw new DataTypeMismatchException(
          "Can't perform generically-typed cast from QueryParserElement."
              + columnType);
    }
  }
View Full Code Here

                  + paramTypes[0].getName());
            }

            break;
          } catch (NumberFormatException e) {
            throw new DataTypeMismatchException(e.getMessage());
          } catch (IllegalArgumentException e) {
            throw new DataTypeMismatchException(e.getMessage());
          } catch (IllegalAccessException e) {
            throw new DataTypeMismatchException(e.getMessage());
          } catch (InvocationTargetException e) {
            throw new DataTypeMismatchException(e
                .getTargetException().getMessage());
          }
        }
      }
    }
View Full Code Here

  public void fromString(String historyString)
      throws DataTypeMismatchException {
    String className = historyString.substring(0, historyString
        .indexOf(" ::: "));
    if (!className.equals(this.getClass().getName())) {
      throw new DataTypeMismatchException("Tried to instantiate a "
          + this.getClass().getName() + "from an apparent "
          + className);
    }

    metadataRegistry.clear();
View Full Code Here

TOP

Related Classes of edu.uga.galileo.voci.exception.DataTypeMismatchException

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.