Return-Path: Delivered-To: apmail-incubator-amber-commits-archive@minotaur.apache.org Received: (qmail 94832 invoked from network); 11 Jul 2010 08:07:12 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 11 Jul 2010 08:07:12 -0000 Received: (qmail 91729 invoked by uid 500); 11 Jul 2010 08:07:12 -0000 Delivered-To: apmail-incubator-amber-commits-archive@incubator.apache.org Received: (qmail 91710 invoked by uid 500); 11 Jul 2010 08:07:11 -0000 Mailing-List: contact amber-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: amber-dev@incubator.apache.org Delivered-To: mailing list amber-commits@incubator.apache.org Received: (qmail 91703 invoked by uid 99); 11 Jul 2010 08:07:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 11 Jul 2010 08:07:11 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 11 Jul 2010 08:07:08 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id E0C092388A4B; Sun, 11 Jul 2010 08:06:15 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: amber-commits@incubator.apache.org From: simonetripodi@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100711080615.E0C092388A4B@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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);