Package org.purl.sword.base

Examples of org.purl.sword.base.SWORDException


      return doc;
    }
    catch (DSpaceSWORDException e)
    {
      log.error("caught exception: ", e);
      throw new SWORDException("The DSpace SWORD interface experienced an error", e);
    }
    finally
    {
      // this is a read operation only, so there's never any need to commit the context
            if (sc != null)
View Full Code Here


      return response;
    }
    catch (DSpaceSWORDException e)
    {
      log.error("caught exception:", e);
      throw new SWORDException("There was a problem depositing the item", e);
    }
    finally
    {
      // if, for some reason, we wind up here with a not null context
      // then abort it (the above should commit it if everything works fine)
View Full Code Here

      return doc;
    }
    catch (DSpaceSWORDException e)
    {
      log.error("caught exception: ", e);
      throw new SWORDException("The DSpace SWORD interface experienced an error", e);
    }
    finally
    {
      // this is a read operation only, so there's never any need to commit the context
        if (sc != null)
View Full Code Here

      ZipEntry ze;
      while ((ze = zip.getNextEntry()) != null) {
        filenames.append(" " + ze.toString());
      }
    } catch (IOException ioe) {
      throw new SWORDException("Failed to open deposited zip file", null, ErrorCodes.ERROR_CONTENT);
    }
   
    // Handle the deposit
    if (!deposit.isNoOp()) {
      counter++;
View Full Code Here

            ZipEntry ze;
            while ((ze = zip.getNextEntry()) != null) {
                filenames.append(" ").append(ze.toString());
            }
    } catch (IOException ioe) {
      throw new SWORDException("Failed to open deposited zip file", ioe, ErrorCodes.ERROR_CONTENT);
    } finally {
            if (zip != null)
            {
                try
                {
View Full Code Here

      return doc;
    }
    catch (DSpaceSWORDException e)
    {
      log.error("caught exception: ", e);
      throw new SWORDException("The DSpace SWORD interface experienced an error", e);
    }
    finally
    {
      // this is a read operation only, so there's never any need to commit the context
            if (sc != null)
View Full Code Here

      return response;
    }
    catch (DSpaceSWORDException e)
    {
      log.error("caught exception:", e);
      throw new SWORDException("There was a problem depositing the item", e);
    }
    finally
    {
      // if, for some reason, we wind up here with a not null context
      // then abort it (the above should commit it if everything works fine)
View Full Code Here

      return doc;
    }
    catch (DSpaceSWORDException e)
    {
      log.error("caught exception: ", e);
      throw new SWORDException("The DSpace SWORD interface experienced an error", e);
    }
    finally
    {
      // this is a read operation only, so there's never any need to commit the context
        if (sc != null)
View Full Code Here

TOP

Related Classes of org.purl.sword.base.SWORDException

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.