Package org.swordapp.server

Examples of org.swordapp.server.SwordServerException


      return true;
    }
    catch (DSpaceSwordException e)
    {
      log.error("caught exception:", e);
            throw new SwordServerException("There was a problem determining the request type", 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


        {
            throw new SwordAuthException();
        }
        catch (SQLException e)
        {
            throw new SwordServerException(e);
        }
    catch (DSpaceSwordException e)
    {
      throw new SwordServerException(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 receipt;
    }
        catch (DSpaceSwordException e)
        {
            log.error("caught exception:", e);
            throw new SwordServerException("There was a problem depositing the item", 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 receipt;
    }
    catch (DSpaceSwordException e)
    {
      log.error("caught exception:", e);
      throw new SwordServerException("There was a problem depositing the item", 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 receipt;
    }
        catch (DSpaceSwordException e)
        {
            log.error("caught exception:", e);
            throw new SwordServerException("There was a problem depositing the item", 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

            sc.commit();
    }
        catch (DSpaceSwordException e)
        {
            log.error("caught exception:", e);
            throw new SwordServerException("There was a problem depositing the item", 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 receipt;
    }
        catch (DSpaceSwordException e)
        {
            log.error("caught exception:", e);
            throw new SwordServerException("There was a problem depositing the item", 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

            mr.setLastModified(this.getLastModified(context, bitstream));
            return mr;
        }
        catch (IOException e)
        {
            throw new SwordServerException(e);
        }
        catch (SQLException e)
        {
            throw new SwordServerException(e);
        }
        catch (AuthorizeException e)
        {
            throw new SwordAuthException(e);
        }
View Full Code Here

                return mr;
            }
        }
        catch (SQLException e)
        {
            throw new SwordServerException(e);
        }
        catch (DSpaceSwordException e)
        {
            throw new SwordServerException(e);
        }
        finally
        {
            // if there is a sword context, abort it (this will abort the inner dspace context as well)
            if (sc != null)
View Full Code Here

            return receipt;
        }
        catch (DSpaceSwordException e)
        {
            log.error("caught exception:", e);
            throw new SwordServerException("There was a problem depositing the item", e);
        }
        catch (SQLException e)
    {
      throw new SwordServerException(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.swordapp.server.SwordServerException

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.