Package org.fao.geonet.csw.common.exceptions

Examples of org.fao.geonet.csw.common.exceptions.NoApplicableCodeEx


    catch (Exception e)
    {
      Log.error(Geonet.CSW, "Cannot load/process capabilities");
      Log.error(Geonet.CSW, " (C) StackTrace\n"+ Util.getStackTrace(e));

      throw new NoApplicableCodeEx("Cannot load/process capabilities");
    }
  }
View Full Code Here


                }
            }
    } catch (Exception e) {
      context.error("Raised : "+ e);
      context.error(" (C) Stacktrace is\n"+Util.getStackTrace(e));
      throw new NoApplicableCodeEx(e.toString());
    }
    return response;
  }
View Full Code Here

    catch(Exception e)
    {
      context.info("Exception stack trace : \n"+ Util.getStackTrace(e));
            // TODO what's this ?
      exc = new NoApplicableCodeEx(e.toString());
    }

    Element response = CatalogException.marshal(exc);
    boolean sender   = (exc instanceof NoApplicableCodeEx);
View Full Code Here

      } catch (IOException e) {
      context.error("Cannot get schema file : "+ dir);
      context.error("  (C) StackTrace\n"+ Util.getStackTrace(e));
     
      throw new NoApplicableCodeEx("Cannot get schema file for : "+ tname);
    } catch (JDOMException e) {
      context.error("Schema file is not well formed : "+ dir);
      context.error("  (C) StackTrace\n"+ Util.getStackTrace(e));

      throw new NoApplicableCodeEx("Schema file not well formed : "+ tname);
    }
  }
View Full Code Here

                Log.debug(Geonet.CSW, "Validating request against " + schema);
            try {
                Xml.validate(schema, request);
            }
            catch (Exception e) {
                throw new NoApplicableCodeEx("Request failed validation:" + e.toString());
            }

            response = new Element("Acknowledgement", Csw.NAMESPACE_CSW);
            response.setAttribute("timeStamp",timeStamp);
View Full Code Here

                try {
                    constr.addContent(Xml.loadString(constraint, false));
                }
                catch (Exception e) {
                    e.printStackTrace();
                    throw new NoApplicableCodeEx("Constraint is not a valid xml");
                }
            }
            setAttrib(constr, "version", constrLangVer);
        }
View Full Code Here

    return res;
  }
    catch (Exception e) {
    context.error("Error while getting metadata with id : "+ id);
    context.error("  (C) StackTrace:\n"+ Util.getStackTrace(e));
    throw new NoApplicableCodeEx("Raised exception while getting metadata :"+ e);
    }
  }
View Full Code Here

TOP

Related Classes of org.fao.geonet.csw.common.exceptions.NoApplicableCodeEx

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.