openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gerdo...@apache.org
Subject svn commit: r985521 - /openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/conversation/ConversationImpl.java
Date Sat, 14 Aug 2010 16:10:48 GMT
Author: gerdogdu
Date: Sat Aug 14 16:10:47 2010
New Revision: 985521

URL: http://svn.apache.org/viewvc?rev=985521&view=rev
Log:
adding explanation to IllegalStateException

Modified:
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/conversation/ConversationImpl.java

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/conversation/ConversationImpl.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/conversation/ConversationImpl.java?rev=985521&r1=985520&r2=985521&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/conversation/ConversationImpl.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/conversation/ConversationImpl.java
Sat Aug 14 16:10:47 2010
@@ -159,7 +159,7 @@ public class ConversationImpl implements
         else
         {
             logger.warn(OWBLogConst.WARN_0004, id);
-            throw new IllegalStateException();
+            throw new IllegalStateException(this.toString() + " has already ended");
         }
     }
     
@@ -313,5 +313,16 @@ public class ConversationImpl implements
         
         return true;
     }
+    
+    @Override
+    public String toString()
+    {
+        StringBuilder builder = new StringBuilder();
+        builder.append("Conversation with id [ ");
+        builder.append(this.id);
+        builder.append(" ]");
+        
+        return builder.toString();
+    }
 
 }



Mime
View raw message