The spec says the exception should be called "ContextNotActive" but
this flies in the face of the convention of calling the exception
"FooException".
Intentional or mistake?
Thanks :)
On 3 Jul 2008, at 02:55, webbeans-commits(a)lists.jboss.org wrote:
Author: shane.bryzak(a)jboss.com
Date: 2008-07-02 21:55:49 -0400 (Wed, 02 Jul 2008)
New Revision: 37
Added:
ri/trunk/webbeans-api/src/main/java/javax/webbeans/
ContextNotActive.java
Removed:
ri/trunk/webbeans-api/src/main/java/javax/webbeans/
ContextNotActiveException.java
Log:
renamed to correct name as per spec
Added: ri/trunk/webbeans-api/src/main/java/javax/webbeans/
ContextNotActive.java
===================================================================
--- ri/trunk/webbeans-api/src/main/java/javax/webbeans/
ContextNotActive.java (rev 0)
+++ ri/trunk/webbeans-api/src/main/java/javax/webbeans/
ContextNotActive.java 2008-07-03 01:55:49 UTC (rev 37)
@@ -0,0 +1,49 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2008, Red Hat Middleware LLC, and individual contributors
+* by the @authors tag. See the copyright.txt in the distribution
for a
+* full listing of individual contributors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
http://www.apache.org/licenses/LICENSE-2.0
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+package javax.webbeans;
+
+/**
+ * This exception is thrown if an invocation is performed on an
inactive scope.
+ *
+ * @author Pete Muir
+ * @author Shane Bryzak
+ */
+
+public class ContextNotActive extends RuntimeException
+{
+
+ public ContextNotActive()
+ {
+ }
+
+ public ContextNotActive(String message)
+ {
+ super(message);
+ }
+
+ public ContextNotActive(Throwable cause)
+ {
+ super(cause);
+ }
+
+ public ContextNotActive(String message, Throwable cause)
+ {
+ super(message, cause);
+ }
+
+}
Deleted: ri/trunk/webbeans-api/src/main/java/javax/webbeans/
ContextNotActiveException.java
===================================================================
--- ri/trunk/webbeans-api/src/main/java/javax/webbeans/
ContextNotActiveException.java 2008-07-01 17:50:29 UTC (rev 36)
+++ ri/trunk/webbeans-api/src/main/java/javax/webbeans/
ContextNotActiveException.java 2008-07-03 01:55:49 UTC (rev 37)
@@ -1,47 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2008, Red Hat Middleware LLC, and individual contributors
-* by the @authors tag. See the copyright.txt in the distribution
for a
-* full listing of individual contributors.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
http://www.apache.org/licenses/LICENSE-2.0
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-
-package javax.webbeans;
-
-/**
- *
- * @author Pete Muir
- */
-
-public class ContextNotActiveException extends RuntimeException
-{
-
- public ContextNotActiveException()
- {
- }
-
- public ContextNotActiveException(String message)
- {
- super(message);
- }
-
- public ContextNotActiveException(Throwable cause)
- {
- super(cause);
- }
-
- public ContextNotActiveException(String message, Throwable cause)
- {
- super(message, cause);
- }
-
-}
_______________________________________________
webbeans-commits mailing list
webbeans-commits(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/webbeans-commits