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

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


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


   public void execute(ActionMessagePrinter printer)
         throws CmdLineActionException {
      try {
         getClient().shutdown();
      } catch (Exception e) {
         throw new CmdLineActionException("Failed to shutdown server : "
               + 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

         printer.println("Type: ["
               + productTypeName
               + "], Num Products: ["
               + client.getNumProducts(pt) + "]");
      } catch (Exception e) {
         throw new CmdLineActionException(
               "Failed to get number of products for" + " ProductType name '"
                     + productTypeName + "' : " + e.getMessage(), e);
      }
   }
View Full Code Here

                  new SerializableMetadata(metadata).toXML(),
                  os);
            os.close();
         }
      } catch (Exception e) {
         throw new CmdLineActionException(
               "Failed to get metadata for product '" + productId + "' : "
                     + e.getMessage(), e);
      }
   }
View Full Code Here

                  + p.getProductType().getName() + ",structure="
                  + p.getProductStructure() + ", transferStatus="
                  + p.getTransferStatus() + "]");
         }
      } catch (Exception e) {
         throw new CmdLineActionException("Failed to get next product page for"
               + " ProductType name '" + productTypeName
               + "'  and current page '" + currentPageNum + "' : "
               + e.getMessage(), e);
      }
   }
View Full Code Here

               + type.getName() + ", description=" + type.getDescription()
               + ", id=" + type.getProductTypeId() + ", versionerClass="
               + type.getVersioner() + ", repositoryPath="
               + type.getProductRepositoryPath() + "]");
      } catch (Exception e) {
         throw new CmdLineActionException(
               "Failed to get product type by name '" + productTypeName
                     + "' : " + e.getMessage(), e);
      }
   }
View Full Code Here

            dt.retrieveProduct(product, destination);
         } else {
            throw new Exception("Product was not found");
         }
      } catch (Exception e) {
         throw new CmdLineActionException("Failed to retrieve files for product : " + e.getMessage(), e);
      }
   }
View Full Code Here

                  + p.getProductName() + "'");
         } else {
            throw new Exception("Delete product returned false");
         }
      } catch (Exception e) {
         throw new CmdLineActionException("Failed to delete product '" + p
               + "' : " + e.getMessage(), e);
      }
   }
View Full Code Here

                  + p.getProductType().getName() + ",structure="
                  + p.getProductStructure() + ", transferStatus="
                  + p.getTransferStatus() + "]");
         }
      } catch (Exception e) {
         throw new CmdLineActionException(
               "Failed to get previous page of products"
                     + " for ProductType name '" + productTypeName
                     + "' and current " + " page '" + currentPageNum + "' : "
                     + 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.