Package org.ice.exception

Examples of org.ice.exception.IceException


      method.invoke(this, new Object[0]);
    } catch(InvocationTargetException ex) {
      Throwable target = ex.getTargetException();
      if (target instanceof Exception)
        throw (Exception)target;
      throw new IceException(ex.getTargetException(), 500);
    } catch (Exception ex)  {
      throw new NotFoundException("Task ["+request.getTaskName()+"] not found for module ["+request.getModuleName()+"]");
    }
   
    this.postDispatch (method);
View Full Code Here


      try {
        if (driver == null)
          driver = adapter.getDriverName();
        Class.forName(driver);
      } catch (Exception ex)  {
        throw new IceException("Invalid driver class name: ["+adapter.getDriverName()+"]");
      }
     
      Connection connection = DriverManager.getConnection(adapter.getConnectionString(host, port, dbName), username, password);
      adapter.setConnection(connection);
      return adapter;
View Full Code Here

  public static void setupRegistry(String registryClass) throws IceException {
    try {
      IRegistry registry = (IRegistry) FieldUtils.loadClass(registryClass);
      RegistryFactory.registry = registry;
    } catch (ClassCastException ex) {
      throw new IceException("Invalid registry class name: "+registryClass);
    } catch (Exception ex) {
      throw new IceException(ex.toString());
    }
  }
View Full Code Here

TOP

Related Classes of org.ice.exception.IceException

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.