Package net.fp.rp.common.exception

Examples of net.fp.rp.common.exception.RpException


      // Carry out the method call
      if (tmpMethod != null) {
        log.debug("tmpMethod:" + tmpMethod);
        tmpMethod.invoke(qSender, invokeMethodArray);
      } else {
        throw new RpException("No createSenderMethod found");
      }

    } catch (IllegalAccessException iae) {
      log.warn(iae);
      throw new RpException(iae);
    } catch (InvocationTargetException ite) {
      log.warn(ite);
      throw new RpException(ite);
    }

  }
View Full Code Here


      log.debug("tmpMethod:" + tmpMethod);

      tmpMethod.invoke(queueConnection, new Object[0]);
    } catch (IllegalAccessException iae) {
      log.debug(iae);
      throw new RpException(iae);
    } catch (InvocationTargetException ite) {
      log.debug(ite);
      throw new RpException(ite);
    } catch (NoSuchMethodException nsme) {
      log.debug(nsme);
      throw new RpException(nsme);
    }

  }
View Full Code Here

      log.debug("tmpMethod:" + tmpMethod);

      returnObject = tmpMethod.invoke(queueConnection, invokeMethodArray);
    } catch (IllegalAccessException iae) {
      log.warn(iae);
      throw new RpException(iae);
    } catch (InvocationTargetException ite) {
      log.warn(ite);
      throw new RpException(ite);
    } catch (NoSuchMethodException nsme) {
      log.warn(nsme);
      throw new RpException(nsme);
    }

    return returnObject;

  }
View Full Code Here

      // Carry out the method call
      if (tmpMethod != null) {
        log.debug("using method:" + tmpMethod);
        returnObject = tmpMethod.invoke(qSession, invokeMethodArray);
      } else {
        throw new RpException("No createSenderMethod found");
      }

    } catch (IllegalAccessException iae) {
      log.debug(iae);
      throw new RpException(iae);
    } catch (InvocationTargetException ite) {
      log.debug(ite);
      throw new RpException(ite);
    }

    return returnObject;

  }
View Full Code Here

      log.debug("tmpMethod:" + tmpMethod);

      returnObject = tmpMethod.invoke(queueConnection, new Object[0]);
    } catch (IllegalAccessException iae) {
      log.debug(iae);
      throw new RpException(iae);
    } catch (InvocationTargetException ite) {
      log.debug(ite);
      throw new RpException(ite);
    } catch (NoSuchMethodException nsme) {
      log.debug(nsme);
      throw new RpException(nsme);
    }

    return returnObject;
  }
View Full Code Here

                        return new CategoryFeedback(Integer.valueOf(score)
                                                           .intValue(),
                            categName, categLocation);
                    } else {
                        logger.warn("The feedback type is not supported");
                        throw new RpException("feedback.model.type.error");
                    }
                } else {
                    logger.warn("No feedback type was defined in the model ");
                    throw new RpException("feedback.model.type.missing");
                }
            } catch (FileNotFoundException e) {
                logger.warn("No feedback model stored in the system path " +
                    modelpath);
                throw new RpException("feedback.model.missing",
                    new Object[] { modelpath });
            }
        }
    }
View Full Code Here

                model.write(new FileOutputStream(file));
                model.close();
            } catch (Throwable e) {
                logger.warn("Error in storing the model in the system path " +
                    path, e);
                throw new RpException("feedback.model.store.error",
                    new Object[] { path });
            }
        }
    }
View Full Code Here

                logger.warn("Error in searching in the specified index");
            }
        } else {
            //new message into the message properties file
            logger.warn("NO INDEXES FOUND");
            throw new RpException("app.search.index.noinit");
        }
    }
View Full Code Here

                    //store and reindex document
                    PluginManager.storeAndAddDocument(doc);
                } catch (IOException e) {
                    logger.debug("Exception in reading the document text" +
                        e.getMessage(), e);
                    throw new RpException("extractor.pdf.textdatamissing",
                        new Object[] { info.getUri() });
                } finally {
                    try {
                        if (bin != null) {
                            bin.close();
                        }
                    } catch (Exception e) {
                    }
                }
            } catch (IOException e) {
                logger.debug("Exception in reading the document text" +
                    e.getMessage(), e);
                throw new RpException("app.extract.error",
                    new Object[] { info.getUri() });
            } finally {
                try {
                    if (writer != null) {
                        writer.close();
View Full Code Here

                            return location;
                        } else {
                            logger.warn(
                                "Original location is not defined in the model ");
                            throw new RpException("document.location.missing");
                        }
                    } catch (FileNotFoundException e) {
                        logger.warn(
                            "Error in reading the model stored in the path " +
                            modelPath);
                        throw new RpException("document.model.read.error",
                            new Object[] { modelPath });
                    }
                }
            } else {
                logger.warn("No model stored in the system path ");
                throw new RpException("document.model.missing",
                    new Object[] { MODEL_NAME });
            }
        } else {
            logger.warn("The category path doesn't exist");
            throw new RpException("category.path.error", new Object[] { path });
        }
    }
View Full Code Here

TOP

Related Classes of net.fp.rp.common.exception.RpException

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.