You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by sc...@apache.org on 2002/10/13 14:57:12 UTC
cvs commit: jakarta-commons/collections/src/java/org/apache/commons/collections BufferOverflowException.java
scolebourne 2002/10/13 05:57:12
Modified: collections/src/java/org/apache/commons/collections
BufferOverflowException.java
Log:
Add no args constructor
Tidy javadoc and code layout
Revision Changes Path
1.4 +32 -21 jakarta-commons/collections/src/java/org/apache/commons/collections/BufferOverflowException.java
Index: BufferOverflowException.java
===================================================================
RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/BufferOverflowException.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- BufferOverflowException.java 13 Aug 2002 00:46:25 -0000 1.3
+++ BufferOverflowException.java 13 Oct 2002 12:57:12 -0000 1.4
@@ -64,40 +64,51 @@
* The BufferOverflowException is used when the buffer's capacity has been
* exceeded.
*
+ * @author Avalon
* @author <a href="mailto:bloritsch@apache.org">Berin Loritsch</a>
* @author <a href="mailto:jefft@apache.org">Jeff Turner</a>
+ * @author Paul Jack
+ * @author Stephen Colebourne
+ * @since 2.1
* @version $Id$
- * @since Avalon 4.0
*/
-public class BufferOverflowException extends RuntimeException
-{
+public class BufferOverflowException extends RuntimeException {
private final Throwable m_throwable;
- /** Construct a new BufferOverflowException.
- * @param message The detail message for this exception.
+ /**
+ * Constructs a new <code>BufferOverflowException</code>.
+ */
+ public BufferOverflowException() {
+ super();
+ m_throwable = null;
+ }
+
+ /**
+ * Construct a new <code>BufferOverflowException</code>.
+ *
+ * @param message the detail message for this exception
*/
- public BufferOverflowException( String message )
- {
- this( message, null );
+ public BufferOverflowException(String message) {
+ this(message, null);
}
- /** Construct a new BufferOverflowException.
- * @param message The detail message for this exception.
- * @param throwable the root cause of the exception
+ /**
+ * Construct a new <code>BufferOverflowException</code>.
+ *
+ * @param message the detail message for this exception
+ * @param throwable the root cause of the exception
*/
- public BufferOverflowException( String message, Throwable exception )
- {
- super( message );
+ public BufferOverflowException(String message, Throwable exception) {
+ super(message);
m_throwable = exception;
}
/**
- * Retrieve root cause of the exception.
+ * Gets the root cause of the exception.
*
* @return the root cause
*/
- public final Throwable getCause()
- {
+ public final Throwable getCause() {
return m_throwable;
}
}
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>