public long registerAlarm(String midlet, long time) throws ClassNotFoundException, ConnectionNotFoundException { // TODO Auto-generated method stub throw new ConnectionNotFoundException(); }
public static Connection openConnection(String protocol, String uriStr, int mode, boolean timeouts) throws IOException { IConnectionFactory factory= (IConnectionFactory) FACTORIES.get(protocol); if(factory == null) { throw new ConnectionNotFoundException(uriStr); } return factory.openPrim(protocol, uriStr, mode, timeouts); } }
/** * {@inheritDoc} */ @Override public Connection open( final String aName, final int aMode, final boolean aTimeouts ) throws IOException { final ConnectionFactory cf = getConnectionFactory( this.context, aName ); if ( cf == null ) { throw new ConnectionNotFoundException( "No connection for: " + aName ); } final Connection connection = cf.createConnection( aName, aMode, aTimeouts ); synchronized ( this.openConnections ) { this.openConnections.add( connection ); } return connection; }
Logger.debug("connection [" + protocol + "] class not found", e); Logger.debug("connection [" + protocol + "] class not found", ex); throw new ConnectionNotFoundException("connection [" + protocol + "] class not found"); throw new ConnectionNotFoundException(); } catch (IllegalAccessException e) { Logger.error("Unable to create", className, e); throw new ConnectionNotFoundException();
throw new ConnectionNotFoundException("Failed to create connection " + name);
throw new ConnectionNotFoundException(name); throw new ConnectionNotFoundException(scheme); throw new ConnectionNotFoundException("scheme [" + scheme + "]");