Package org.archive.wayback.exception

Examples of org.archive.wayback.exception.ResourceIndexNotAvailableException


    throws ResourceIndexNotAvailableException {
    try {
      return adaptIterator(getReverseRecordIterator(prefix));
    } catch (IOException e) {
      e.printStackTrace();
      throw new ResourceIndexNotAvailableException(e.getMessage());
    }
  }
View Full Code Here


   * @see org.archive.wayback.resourceindex.SearchResultSource#getPrefixIterator(java.lang.String)
   */
  public CloseableIterator<CaptureSearchResult> getPrefixIterator(String prefix)
      throws ResourceIndexNotAvailableException {
    if(getState() != STATE_SYNCHED) {
      throw new ResourceIndexNotAvailableException("Not synchronized");
    }
    return super.getPrefixIterator(prefix);
  }
View Full Code Here

   */
  public CloseableIterator<CaptureSearchResult> getPrefixReverseIterator(String prefix)
      throws ResourceIndexNotAvailableException {

    if(getState() != STATE_SYNCHED) {
      throw new ResourceIndexNotAvailableException("Not synchronized");
    }
    return super.getPrefixReverseIterator(prefix);
  }
View Full Code Here

            if (searchResults.getReturnedCount() == 0) {
              throw new ResourceNotInArchiveException(wbRequest.getRequestUrl() + " was not found");
            }
                   
        } catch (IOException e) {
          throw new ResourceIndexNotAvailableException(e.toString());
        } catch (RuntimeException rte) {
          Throwable cause = rte.getCause();
         
          if (cause instanceof AccessControlException) {
            throw (AccessControlException)cause;
          }
         
          if (cause instanceof IOException) {
            throw new ResourceIndexNotAvailableException(cause.toString());
          }
         
          rte.printStackTrace(); // for now, for better debugging         
          throw new ResourceIndexNotAvailableException(rte.toString());
        }
               
    return searchResults;
  }
View Full Code Here

TOP

Related Classes of org.archive.wayback.exception.ResourceIndexNotAvailableException

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.