Package org.fcrepo.server.errors

Examples of org.fcrepo.server.errors.ObjectIntegrityException


        }
        DatastreamXMLMetadata dsInSpecDS = null;
        try {
            dsInSpecDS = (DatastreamXMLMetadata) ds;
        } catch (Throwable th) {
            throw new ObjectIntegrityException("The object, " + GetObjectPID()
                    + " has a DSINPUTSPEC datastream existing at "
                    + getWhenString(versDateTime) + ", but it's not an "
                    + "XML metadata datastream");
        }
        return dsInSpecDS;
View Full Code Here


            String msg =
                    "ServiceMapper returned SAXException. "
                            + "The underlying exception was a "
                            + e.getClass().getName() + ".  "
                            + "The message was " + "\"" + e.getMessage() + "\"";
            throw new ObjectIntegrityException(msg);
        } catch (Exception e) {
            String msg =
                    "ServiceMapper returned error. "
                            + "The underlying error was a "
                            + e.getClass().getName() + ".  "
View Full Code Here

            }
            out.append("</objectItemIndex>");
            return out.toString();
        } catch (Exception e) {
            e.printStackTrace();
            throw new ObjectIntegrityException(e.getMessage());
        }
    }
View Full Code Here

                                                                 asOfDateTime);
            in =
                    new ByteArrayInputStream(new ObjectInfoAsXML(context)
                            .getOAIDublinCore(dcmd).getBytes("UTF-8"));
        } catch (ClassCastException cce) {
            throw new ObjectIntegrityException("Object "
                    + reader.GetObjectPID()
                    + " has a DC datastream, but it's not inline XML.");

        } catch (UnsupportedEncodingException uee) {
            throw new GeneralException("[DefaultDisseminatorImpl] An error has occurred. "
View Full Code Here

TOP

Related Classes of org.fcrepo.server.errors.ObjectIntegrityException

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.