Package com.github.dandelion.datatables.core.exception

Examples of com.github.dandelion.datatables.core.exception.ConfigurationLoadingException


            Class<LocaleResolver> classProperty;
            try {
              classProperty = (Class<LocaleResolver>) ClassUtils.getClass(className);
              localeResolver = (LocaleResolver) ClassUtils.getNewInstance(classProperty);
            } catch (Exception e) {
              throw new ConfigurationLoadingException(e);
            }
        }
      } catch (ConfigurationLoadingException e) {
        throw new ConfigurationLoadingException("Unable to retrieve the LocaleResolver using the class '"
            + className + "'", e);
      }
    }
    return localeResolver;
  }
View Full Code Here


            try {
              classProperty = (Class<MessageResolver>) ClassUtils.getClass(className);
              messageResolver = classProperty.getDeclaredConstructor(new Class[] { HttpServletRequest.class })
                  .newInstance(request);
            } catch (Exception e) {
              throw new ConfigurationLoadingException(e);
            }
        }
      } catch (ConfigurationLoadingException e) {
        throw new ConfigurationLoadingException("Unable to retrieve the MessageResolver using the class '"
            + className + "'", e);
      }
    }
    return messageResolver;
  }
View Full Code Here

            .getResourceAsStream(DT_DEFAULT_PROPERTIES);
        Reader reader = new InputStreamReader(propertiesStream, "UTF-8");
        propertiesResource.load(reader);
      }
      catch (IOException e) {
        throw new ConfigurationLoadingException("Unable to load the default configuration file", e);
      }
      finally {
        if (propertiesStream != null) {
          try {
            propertiesStream.close();
View Full Code Here

          }
        }
        msg.append("\n");
      }
      logger.error(msg.toString());
      throw new ConfigurationLoadingException(msg.toString());
    }

    logger.debug("{} group(s) resolved {} for the locale {}", groups.size(), groups.toString(), locale);
  }
View Full Code Here

TOP

Related Classes of com.github.dandelion.datatables.core.exception.ConfigurationLoadingException

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.