Project

General

Profile

« Previous | Next » 

Revision 6001

DocumentImpl.delete() now throws finer grained exceptions (not a general exception). Consequently, the classes that call it have been updated to handle the thrown exceptions, including CrudService, ReplicationHandler, and ReplicationService.

View differences:

CrudService.java
968 968
        {
969 969
            DocumentImpl.delete(docid, sessionData.getUserName(), sessionData.getGroupNames(), null);
970 970
        }
971
        catch(Exception e)
971
        catch(SQLException e)
972 972
        {
973 973
            throw new ServiceFailure("1350", "Could not delete document: " + e.getMessage());
974 974
        }
975
        
975
        catch(McdbDocNotFoundException e)
976
        {
977
          throw new ServiceFailure("1350", "Could not delete document: " + e.getMessage());
978
        }
979
        catch(InsufficientKarmaException e)
980
        {
981
          throw new ServiceFailure("1350", "Could not delete document: " + e.getMessage());
982
        }
983
        catch(Exception e)
984
        {
985
          throw new ServiceFailure("1350", "Could not delete document: " + e.getMessage());
986
        }
976 987
        return guid;
977 988
    }
978 989

  

Also available in: Unified diff