Examples of ExtensionException


Examples of org.apache.airavata.core.gfac.exception.ExtensionException

                appDesc.setStandardError(appDesc.getStaticWorkingDirectory() + File.separator
                        + appDesc.getApplicationName().getStringValue() + ".stderr");
            }

        } else {
            throw new ExtensionException("Service Map for " + context.getServiceName()
                    + " does not found on resource Catalog " + context.getExecutionContext().getRegistryService());
        }

        return false;
    }
View Full Code Here

Examples of org.apache.airavata.core.gfac.exception.ExtensionException

                appDesc.setStandardError(appDesc.getStaticWorkingDirectory() + File.separator
                        + appDesc.getApplicationName().getStringValue() + ".stderr");
            }

        } else {
            throw new ExtensionException("Service Map for " + context.getServiceName()
                    + " does not found on resource Catalog " + context.getExecutionContext().getRegistryService());
        }

        return false;
    }
View Full Code Here

Examples of org.apache.airavata.core.gfac.exception.ExtensionException

                }
            } else {
                log.debug("Output Context is null");
            }
        } catch (UnknownHostException e) {
            throw new ExtensionException("Cannot find IP Address for current host", e);
        } catch (URISyntaxException e) {
            throw new ExtensionException("URI is in the wrong format:" + e.getMessage(), e);
        } catch (ToolsException e) {
            throw new ExtensionException(e.getMessage(), e);
        } catch (SecurityException e) {
            throw new ExtensionException(e.getMessage(), e);
        }
        return false;
    }
View Full Code Here

Examples of org.apache.airavata.core.gfac.exception.ExtensionException

                }
            } else {
                log.debug("Input Context is null");
            }
        } catch (SecurityException e) {
            throw new ExtensionException(e.getMessage(), e);
        } catch (ToolsException e) {
            throw new ExtensionException(e.getMessage(), e);
        } catch (URISyntaxException e) {
            throw new ExtensionException("URI is in the wrong format:" + e.getMessage(), e);
        } catch (IOException e) {
            throw new ExtensionException("Cannot load from HTTP", e);
        }
        return false;
    }
View Full Code Here

Examples of org.apache.airavata.core.gfac.exception.ExtensionException

                appDesc.setStandardError(appDesc.getStaticWorkingDirectory() + File.separator
                        + appDesc.getApplicationName().getStringValue() + ".stderr");
            }

        } else {
            throw new ExtensionException("Service Map for " + context.getServiceName()
                    + " does not found on resource Catalog " + context.getExecutionContext().getRegistryService());
        }

        return false;
    }
View Full Code Here

Examples of org.apache.airavata.core.gfac.exception.ExtensionException

            } else {
                log.debug("Input Context is null");
            }

        } catch (UnknownHostException e) {
            throw new ExtensionException("Cannot find IP Address for current host", e);
        } catch (URISyntaxException e) {
            throw new ExtensionException("URI is in the wrong format:" + e.getMessage(), e);
        } catch (ToolsException e) {
            throw new ExtensionException(e.getMessage(), e);
        } catch (SecurityException e) {
            throw new ExtensionException(e.getMessage(), e);
        }
        return false;
    }
View Full Code Here

Examples of org.apache.cxf.bus.extension.ExtensionException

            if (c == null) {
                try {
                    return super.tryClass(name, cl);
                } catch (ExtensionException ee) {
                    if (origExc != null) {
                        throw new ExtensionException(new Message("PROBLEM_LOADING_EXTENSION_CLASS",
                                                                 Extension.LOG, name),
                                                     origExc);
                    } else {
                        throw ee;
                    }
View Full Code Here

Examples of org.apache.cxf.bus.extension.ExtensionException

            if (c == null) {
                try {
                    return super.tryClass(name, cl);
                } catch (ExtensionException ee) {
                    if (origExc != null) {
                        throw new ExtensionException(new Message("PROBLEM_LOADING_EXTENSION_CLASS",
                                                                 Extension.LOG, name),
                                                     origExc);
                    } else {
                        throw ee;
                    }
View Full Code Here

Examples of org.nlogo.api.ExtensionException

      try {
        String fullPath = workspace.fileManager().attachPrefix(path);
        if (org.nlogo.api.RemoteFile.exists(fullPath)) {
          return fullPath;
        } else {
          throw new ExtensionException("Can't find file " + path + " using " + fullPath);
        }
      } catch (java.net.MalformedURLException ex) {
        throw new ExtensionException(path + " is not a valid pathname: " + ex);
      }
    }

    try {
      String fullPath = workspace.attachModelDir(path);
      java.io.File f = new java.io.File(fullPath);
      if (f.exists()) {
        return fullPath;
      }
    } catch (java.net.MalformedURLException ex) {
      org.nlogo.util.Exceptions.ignore(ex);
    }

    // Then try the extensions folder
    java.io.File f = new java.io.File("extensions" + java.io.File.separator + path);
    if (f.exists()) {
      return f.getPath();
    }

    // Give up
    throw new ExtensionException("Can't find file " + path);
  }
View Full Code Here

Examples of org.spockframework.runtime.extension.ExtensionException

  public void start() {
    try {
      socket = new Socket(reportServerAddress, reportServerPort);
    } catch (IOException e) {
      throw new ExtensionException(String.format("Error opening connection to report server. " +
          "Server address: %s Server port: %d", reportServerAddress, reportServerPort), e);
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.