directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trus...@apache.org
Subject svn commit: r122710 - /incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/ProtocolViolationException.java
Date Sat, 18 Dec 2004 05:02:01 GMT
Author: trustin
Date: Fri Dec 17 21:01:58 2004
New Revision: 122710

URL: http://svn.apache.org/viewcvs?view=rev&rev=122710
Log:
 * ProtocolViolationException is not IOException anymore; some protocols want to continue
communication even if the client violated protocol.
Modified:
   incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/ProtocolViolationException.java

Modified: incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/ProtocolViolationException.java
Url: http://svn.apache.org/viewcvs/incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/ProtocolViolationException.java?view=diff&rev=122710&p1=incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/ProtocolViolationException.java&r1=122709&p2=incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/ProtocolViolationException.java&r2=122710
==============================================================================
--- incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/ProtocolViolationException.java
(original)
+++ incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/ProtocolViolationException.java
Fri Dec 17 21:01:58 2004
@@ -18,8 +18,6 @@
  */
 package org.apache.mina.protocol;
 
-import java.io.IOException;
-
 import java.nio.ByteBuffer;
 
 import org.apache.commons.lang.Validate;
@@ -32,7 +30,7 @@
  * @author Trustin Lee (trustin@apache.org)
  * @version $Rev$, $Date$
  */
-public class ProtocolViolationException extends IOException
+public class ProtocolViolationException extends Exception
 {
     private ByteBuffer buffer;
 
@@ -56,7 +54,7 @@
      */
     public ProtocolViolationException( Throwable cause )
     {
-        initCause( cause );
+        super( cause );
     }
 
     /**
@@ -65,8 +63,7 @@
      */
     public ProtocolViolationException( String message, Throwable cause )
     {
-        super( message );
-        initCause( cause );
+        super( message, cause );
     }
 
     /**

Mime
View raw message