Package org.apache.oodt.cas.cli.exception

Examples of org.apache.oodt.cas.cli.exception.CmdLineActionException


            } else {
               printer.println("No Protocol determined, FAILED verification!");
            }
         }
      } catch (Exception e) {
         throw new CmdLineActionException("Failed to verify factory '"
               + factory + "' : " + e.getMessage(), e);
      }
   }
View Full Code Here


         fromProtocol
               .get(new ProtocolFile(fromUri.getPath(), false), localFile);
         toProtocol.put(localFile, new ProtocolFile(toUri.getPath(), false));
      } catch (Exception e) {
         throw new CmdLineActionException(
               "Failed to transfer between 2 protocols : " + e.getMessage(), e);
      }
   }
View Full Code Here

         throws CmdLineActionException {
      try {
         printer.println("Starting XML-RPC server on port " + getPort());
         getXmlRpcFactory().createCommunicationChannelServer().startup();
      } catch (Exception e) {
         throw new CmdLineActionException("Failed to startup server : "
               + e.getMessage(), e);
      }
   }
View Full Code Here

                  .startCrawling();
         } else {
            pc.crawl();
         }
      } catch (Exception e) {
         throw new CmdLineActionException("Failed to launch crawler : "
               + e.getMessage(), e);
      }
   }
View Full Code Here

            printer.println("Failed: " + file.getPath());
          }
        }
      }
    } catch (Exception e) {
      throw new CmdLineActionException("Failed to delete directories", e);
    }
  }
View Full Code Here

                           values.iterator(), ",")) + "', ");
            }
            printer.println(sb.substring(0, sb.length() - 2));
         }
      } catch (Exception e) {
         throw new CmdLineActionException("Failed to perform query '" + query
               + "' : " + e.getMessage(), e);
      }
   }
View Full Code Here

                           values.iterator(), ",")) + "', ");
            }
            printer.println(sb.substring(0, sb.length() - 2));
         }
      } catch (Exception e) {
         throw new CmdLineActionException("", e);
      }
   }
View Full Code Here

         for (Catalog catalog : catalogs) {
            printer.println("Adding Catalog: " + catalog);
            getClient().addCatalog(catalog);
         }
      } catch (Exception e) {
         throw new CmdLineActionException(
               "Failed to load catalogs from bean repo : " + e.getMessage(), e);
      }
   }
View Full Code Here

   public void execute(ActionMessagePrinter printer)
         throws CmdLineActionException {
      try {
         printer.println("CatalogIDs: " + getClient().getCurrentCatalogIds());
      } catch (Exception e) {
         throw new CmdLineActionException(
               "Failed to get supported Catalog IDs : " + e.getMessage(), e);
      }
   }
View Full Code Here

                           .toString().replaceAll("[\\[\\]]", "'") + ", ");
            }
            printer.println(sb.substring(0, sb.length() - 2) + ")");
         }
      } catch (Exception e) {
         throw new CmdLineActionException("Failed to perform query '" + query
               + "' : " + e.getMessage(), e);
      }
   }
View Full Code Here

TOP

Related Classes of org.apache.oodt.cas.cli.exception.CmdLineActionException

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.