throw exception on nonce create/retrieve errors
authorkoutsoub <devnull@localhost>
Fri, 18 Feb 2011 12:20:43 +0000 (14:20 +0200)
committerkoutsoub <devnull@localhost>
Fri, 18 Feb 2011 12:20:43 +0000 (14:20 +0200)
src/gr/ebs/gss/server/webdav/milton/GssNonceProvider.java

index 3597a91..7e716a2 100644 (file)
@@ -121,7 +121,7 @@ public class GssNonceProvider implements NonceProvider {
                getService().saveOrUpdateWebDavNonce(non);
        }
        catch(Exception ex){
-               ex.printStackTrace();
+               throw new RuntimeException("Unable to save or update nonce",ex);
        }
     }
     
@@ -135,7 +135,7 @@ public class GssNonceProvider implements NonceProvider {
                }
        }
        catch(Exception ex){
-               ex.printStackTrace();
+               throw new RuntimeException("Unable to retrieve nonce",ex);
        }
        return null;
     }