Package com.ibatis.common.exception

Examples of com.ibatis.common.exception.NestedRuntimeException


        } catch (Throwable t) {
          throw ClassInfo.unwrapThrowable(t);
        }
      }
    } catch (Throwable t) {
      throw new NestedRuntimeException("Error setting properties of '" + object + "'.  Cause: " + t, t);
    }
  }
View Full Code Here


        } catch (Throwable t) {
          throw ClassInfo.unwrapThrowable(t);
        }
      }
    } catch (Throwable t) {
      throw new NestedRuntimeException("Error getting properties of '" + object + "'.  Cause: " + t, t);
    }
    return values;
  }
View Full Code Here

      Object value2 = PROBE.getObject(parameterObject, comparePropertyName);
      return compareValues(type, value1, value2);
    } else if (compareValue != null) {
      return compareValues(type, value1, compareValue);
    } else {
      throw new NestedRuntimeException("Error comparing in conditional fragment.  Uknown 'compare to' values.");
    }
  }
View Full Code Here

      return Boolean.valueOf(value);
    } else if (type == Date.class) {
      try {
        return DATE_FORMAT.parse(value);
      } catch (ParseException e) {
        throw new NestedRuntimeException("Error parsing date.  Cause: " + e, e);
      }
    } else if (type == BigInteger.class) {
      return new BigInteger(value);
    } else if (type == BigDecimal.class) {
      return new BigDecimal(value);
View Full Code Here

    try {
      Document doc = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument();
      doc.appendChild(doc.createElement(root));
      return doc;
    } catch (ParserConfigurationException e) {
      throw new NestedRuntimeException("Error creating XML document.  Cause: " + e);
    }
  }
View Full Code Here

        }
      }
      setResultMappingList(resultMappingList);

    } catch (SQLException e) {
      throw new NestedRuntimeException("Error automapping columns. Cause: " + e);
    }

  }
View Full Code Here

        resultMapping.setTypeHandler(getDelegate().getTypeHandlerFactory().getTypeHandler(String.class));
        resultMappingList.add(resultMapping);
      }
      setResultMappingList(resultMappingList);
    } catch (SQLException e) {
      throw new NestedRuntimeException("Error automapping columns. Cause: " + e);
    }
  }
View Full Code Here

      }

      setResultMappingList(resultMappingList);

    } catch (SQLException e) {
      throw new NestedRuntimeException("Error automapping columns. Cause: " + e);
    }
  }
View Full Code Here

      resultMappingList.add(resultMapping);

      setResultMappingList(resultMappingList);

    } catch (SQLException e) {
      throw new NestedRuntimeException("Error automapping columns. Cause: " + e);
    }
  }
View Full Code Here

    } catch (IOException e) {
      throw e;
    } catch (SQLException e) {
      throw e;
    } catch (Exception e) {
      throw new NestedRuntimeException("Error running script.  Cause: " + e, e);
    }
  }
View Full Code Here

TOP

Related Classes of com.ibatis.common.exception.NestedRuntimeException

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.