Package net.fp.rp.common.exception

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


                    logger.debug("Direct score is  " + score);

                    return score;
                } else {
                    logger.warn("Direct Score is not defined in the model ");
                    throw new RpException("document.directscore.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 });
            }
        }
    }
View Full Code Here


                    return score;
                } else {
                    logger.warn(
                        "Direct Score for calculate the implied score is not defined in the model ");
                    throw new RpException("document.directscore.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 });
            }
        }
    }
View Full Code Here

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

                                    list[i].getPath());
                            }
                        }
                    }
                } else {
                    throw new RpException("treeextractor.folder.notexists",
                        new Object[] { info.getUri() });
                }
            } catch (MalformedURLException e) {
                logger.warn("Specified uri is not valid " + e.getMessage(), e);
                throw new RpException("extractor.tree.foldernotexists",
                    new Object[] { info.getUri() });
            }
        } else {
            logger.debug(
                "Current level for the information is already 0-> no futher process for this location");
View Full Code Here

            basic.generateCategoryData(this);
        } else {
            logger.warn("No extractor can handle the specified information " +
                info.getUri());
            throw new RpException("categorymanager.add.nohandler",
                new Object[] { info.getUri() });
        }
    }
View Full Code Here

            basic.generateCategoryData(this);
           
        } else {
            logger.warn("No extractor can handle the specified information " +
                info.getUri());
            throw new RpException("categorymanager.add.nohandler",
                new Object[] { info.getUri() });
        }
    }
View Full Code Here

        return txtMessage;
      }
    });
   
    } catch (Throwable t){
      throw new RpException (t);
    }
  }
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.