Package it.unina.seclab.jafimon.exceptions

Examples of it.unina.seclab.jafimon.exceptions.GenericConfigurationParsingException


    try {
      fis = new FileInputStream(fileName);
      res = parseAndCheck(fis);
    } catch (FileNotFoundException e) {
          throw new GenericConfigurationParsingException(e.getLocalizedMessage());
    }
   
    return res;
  }
View Full Code Here


      } else
        logger.debug("Found \"" + INJECTOR_ELEMENT_NAME + "\" element");
     
    } catch (ParserConfigurationException pce) {
      logger.error("Could not locate a JAXP parser");
          throw new GenericConfigurationParsingException("Could not locate a JAXP parser");

    } catch (IOException e) {
      logger.error("IOException occourred during parsing for \"" + is.toString() + "\" file. Message is: \"" + e.getLocalizedMessage() + "\"");
          throw new GenericConfigurationParsingException("IOException occourred during parsing for \"" + is.toString() + "\" file. Message is: \"" + e.getLocalizedMessage() + "\"");
   
    } catch (SAXException e) {
      logger.error("XML document \"" + is.toString() + "\" is not well-formed");
      throw new InvalidConfigurationFileException("XML document \"" + is.toString() + "\" is not well-formed");
    }
View Full Code Here

TOP

Related Classes of it.unina.seclab.jafimon.exceptions.GenericConfigurationParsingException

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.