remm 02/05/30 13:14:29
Modified: catalina/src/share/org/apache/catalina/realm RealmBase.java
Log:
- Throw LifecycleException instead of ISE, to be cosistent with most
other components (I guess we'll harmonize all components on LE,
and change the Javadoc).
Revision Changes Path
1.11 +6 -6
jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/realm/RealmBase.java
Index: RealmBase.java
===================================================================
RCS file:
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/realm/RealmBase.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- RealmBase.java 26 Feb 2002 00:49:22 -0000 1.10
+++ RealmBase.java 30 May 2002 20:14:29 -0000 1.11
@@ -1,7 +1,7 @@
/*
- * $Header:
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/realm/RealmBase.java,v
1.10 2002/02/26 00:49:22 remm Exp $
- * $Revision: 1.10 $
- * $Date: 2002/02/26 00:49:22 $
+ * $Header:
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/realm/RealmBase.java,v
1.11 2002/05/30 20:14:29 remm Exp $
+ * $Revision: 1.11 $
+ * $Date: 2002/05/30 20:14:29 $
*
* ====================================================================
*
@@ -91,7 +91,7 @@
* location) are identical to those currently supported by Tomcat 3.X.
*
* @author Craig R. McClanahan
- * @version $Revision: 1.10 $ $Date: 2002/02/26 00:49:22 $
+ * @version $Revision: 1.11 $ $Date: 2002/05/30 20:14:29 $
*/
public abstract class RealmBase
@@ -516,7 +516,7 @@
// Validate and update our current component state
if (started)
- throw new IllegalStateException
+ throw new LifecycleException
(sm.getString("realmBase.alreadyStarted"));
lifecycle.fireLifecycleEvent(START_EVENT, null);
started = true;
@@ -549,7 +549,7 @@
// Validate and update our current component state
if (!started)
- throw new IllegalStateException
+ throw new LifecycleException
(sm.getString("realmBase.notStarted"));
lifecycle.fireLifecycleEvent(STOP_EVENT, null);
started = false;
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>