incubator-amber-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r963010 - /incubator/amber/trunk/signature-api/src/main/java/org/apache/amber/signature/AbstractMethod.java
Date Sun, 11 Jul 2010 08:06:15 GMT
Author: simonetripodi
Date: Sun Jul 11 08:06:15 2010
New Revision: 963010

URL: http://svn.apache.org/viewvc?rev=963010&view=rev
Log:
IAE converted to SignatureException

Modified:
    incubator/amber/trunk/signature-api/src/main/java/org/apache/amber/signature/AbstractMethod.java

Modified: incubator/amber/trunk/signature-api/src/main/java/org/apache/amber/signature/AbstractMethod.java
URL: http://svn.apache.org/viewvc/incubator/amber/trunk/signature-api/src/main/java/org/apache/amber/signature/AbstractMethod.java?rev=963010&r1=963009&r2=963010&view=diff
==============================================================================
--- incubator/amber/trunk/signature-api/src/main/java/org/apache/amber/signature/AbstractMethod.java
(original)
+++ incubator/amber/trunk/signature-api/src/main/java/org/apache/amber/signature/AbstractMethod.java
Sun Jul 11 08:06:15 2010
@@ -127,10 +127,10 @@ public abstract class AbstractMethod imp
             OAuthToken token,
             OAuthRequest request) throws SignatureException {
         if (signingKey == null) {
-            throw new IllegalArgumentException("parameter 'signingKey' must not be null");
+            throw new SignatureException("parameter 'signingKey' must not be null");
         }
         if (request == null) {
-            throw new IllegalArgumentException("parameter 'request' must not be null");
+            throw new SignatureException("parameter 'request' must not be null");
         }
         this.checkKey(signingKey);
 
@@ -158,13 +158,13 @@ public abstract class AbstractMethod imp
             OAuthToken token,
             OAuthRequest request) throws SignatureException {
         if (signature == null) {
-            throw new IllegalArgumentException("parameter 'signature' must not be null");
+            throw new SignatureException("parameter 'signature' must not be null");
         }
         if (verifyingKey == null) {
-            throw new IllegalArgumentException("parameter 'verifyingKey' must not be null");
+            throw new SignatureException("parameter 'verifyingKey' must not be null");
         }
         if (request == null) {
-            throw new IllegalArgumentException("parameter 'request' must not be null");
+            throw new SignatureException("parameter 'request' must not be null");
         }
         this.checkKey(verifyingKey);
 



Mime
View raw message