From 49d9fa86a6fc1b30bc7cedd65a226fececd17b11 Mon Sep 17 00:00:00 2001 From: Stephen Colebourne Date: Sun, 13 Oct 2002 12:57:12 +0000 Subject: [PATCH] Add no args constructor Tidy javadoc and code layout git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130828 13f79535-47bb-0310-9956-ffa450edef68 --- .../collections/BufferOverflowException.java | 53 +++++++++++-------- 1 file changed, 32 insertions(+), 21 deletions(-) diff --git a/src/java/org/apache/commons/collections/BufferOverflowException.java b/src/java/org/apache/commons/collections/BufferOverflowException.java index d117c10c3..3393b3081 100644 --- a/src/java/org/apache/commons/collections/BufferOverflowException.java +++ b/src/java/org/apache/commons/collections/BufferOverflowException.java @@ -1,7 +1,7 @@ /* - * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/BufferOverflowException.java,v 1.3 2002/08/13 00:46:25 pjack Exp $ - * $Revision: 1.3 $ - * $Date: 2002/08/13 00:46:25 $ + * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/BufferOverflowException.java,v 1.4 2002/10/13 12:57:12 scolebourne Exp $ + * $Revision: 1.4 $ + * $Date: 2002/10/13 12:57:12 $ * * ==================================================================== * @@ -64,40 +64,51 @@ package org.apache.commons.collections; * The BufferOverflowException is used when the buffer's capacity has been * exceeded. * + * @author Avalon * @author Berin Loritsch * @author Jeff Turner - * @version $Id: BufferOverflowException.java,v 1.3 2002/08/13 00:46:25 pjack Exp $ - * @since Avalon 4.0 + * @author Paul Jack + * @author Stephen Colebourne + * @since 2.1 + * @version $Id: BufferOverflowException.java,v 1.4 2002/10/13 12:57:12 scolebourne Exp $ */ -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 BufferOverflowException. */ - public BufferOverflowException( String message ) - { - this( message, null ); + public BufferOverflowException() { + super(); + m_throwable = null; } - /** Construct a new BufferOverflowException. - * @param message The detail message for this exception. - * @param throwable the root cause of the exception + /** + * Construct a new BufferOverflowException. + * + * @param message the detail message for this exception */ - public BufferOverflowException( String message, Throwable exception ) - { - super( message ); + 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 + */ + 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; } }