geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r433216 - /geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/AuthConfigFactory.java
Date Mon, 21 Aug 2006 10:13:33 GMT
Author: gnodet
Date: Mon Aug 21 03:13:32 2006
New Revision: 433216

URL: http://svn.apache.org/viewvc?rev=433216&view=rev
Log:
Throw AuthException instead of SecurityException

Modified:
    geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/AuthConfigFactory.java

Modified: geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/AuthConfigFactory.java
URL: http://svn.apache.org/viewvc/geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/AuthConfigFactory.java?rev=433216&r1=433215&r2=433216&view=diff
==============================================================================
--- geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/AuthConfigFactory.java
(original)
+++ geronimo/specs/branches/geronimo-spec-jaspi/src/main/java/javax/security/auth/message/config/AuthConfigFactory.java
Mon Aug 21 03:13:32 2006
@@ -67,10 +67,10 @@
             } catch (PrivilegedActionException e) {
                 Exception inner = e.getException();
                 if (inner instanceof InstantiationException) {
-                    throw (SecurityException) new SecurityException("AuthConfigFactory error:"
-                                    + inner.getCause().getMessage(), inner.getCause());
+                    throw (AuthException) new AuthException("AuthConfigFactory error:"
+                                    + inner.getCause().getMessage()).initCause(inner.getCause());
                 } else {
-                    throw (SecurityException) new SecurityException("AuthConfigFactory error:
" + inner, inner);
+                    throw (AuthException) new AuthException("AuthConfigFactory error: " +
inner).initCause(inner);
                 }
             }
         }



Mime
View raw message