Return-Path: Delivered-To: apmail-activemq-commits-archive@www.apache.org Received: (qmail 45722 invoked from network); 21 May 2009 10:27:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 May 2009 10:27:10 -0000 Received: (qmail 33808 invoked by uid 500); 21 May 2009 10:27:23 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 33769 invoked by uid 500); 21 May 2009 10:27:23 -0000 Mailing-List: contact commits-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list commits@activemq.apache.org Received: (qmail 33760 invoked by uid 99); 21 May 2009 10:27:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 May 2009 10:27:23 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 May 2009 10:27:17 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id C32F223889C7; Thu, 21 May 2009 10:26:30 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r777039 [13/15] - in /activemq/activemq-cpp/trunk/activemq-cpp/src/main: activemq/cmsutil/ activemq/commands/ activemq/exceptions/ activemq/io/ activemq/transport/ activemq/transport/failover/ activemq/transport/mock/ activemq/transport/tcp... Date: Thu, 21 May 2009 10:26:17 -0000 To: commits@activemq.apache.org From: tabish@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090521102630.C32F223889C7@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/SocketTimeoutException.h URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/SocketTimeoutException.h?rev=777039&r1=777038&r2=777039&view=diff ============================================================================== --- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/SocketTimeoutException.h (original) +++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/SocketTimeoutException.h Thu May 21 10:26:09 2009 @@ -34,7 +34,7 @@ /** * Conversion Constructor from some other Exception - * @param An exception that should become this type of Exception + * @param ex An exception that should become this type of Exception */ SocketTimeoutException( const Exception& ex ) throw() : io::InterruptedIOException() @@ -44,6 +44,7 @@ /** * Copy Constructor + * @param ex An exception that should become this type of Exception */ SocketTimeoutException( const SocketTimeoutException& ex ) throw() : io::InterruptedIOException() @@ -55,11 +56,11 @@ * Constructor - Initializes the file name and line number where * this message occurred. Sets the message to report, using an * optional list of arguments to parse into the message - * @param file name where exception occurs - * @param line number where the exception occurred. + * @param file The file name where exception occurs + * @param lineNumber The line number where the exception occurred. * @param cause The exception that was the cause for this one to be thrown. - * @param message to report - * @param list of primitives that are formatted into the message + * @param msg The message to report + * @param ... list of primitives that are formatted into the message */ SocketTimeoutException( const char* file, const int lineNumber, const std::exception* cause, @@ -86,10 +87,10 @@ * Constructor - Initializes the file name and line number where * this message occurred. Sets the message to report, using an * optional list of arguments to parse into the message - * @param file name where exception occurs - * @param line number where the exception occurred. - * @param message to report - * @param list of primitives that are formatted into the message + * @param file The file name where exception occurs + * @param lineNumber The line number where the exception occurred. + * @param msg The message to report + * @param ... list of primitives that are formatted into the message */ SocketTimeoutException( const char* file, const int lineNumber, const char* msg, ... ) throw () @@ -107,14 +108,13 @@ * Clones this exception. This is useful for cases where you need * to preserve the type of the original exception as well as the message. * All subclasses should override. + * + * @return a new Exception instance that is a copy of this Exception object. */ virtual SocketTimeoutException* clone() const { return new SocketTimeoutException( *this ); } - /** - * Destructor - */ virtual ~SocketTimeoutException() throw() {} }; Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/TcpSocket.h URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/TcpSocket.h?rev=777039&r1=777038&r2=777039&view=diff ============================================================================== --- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/TcpSocket.h (original) +++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/TcpSocket.h Thu May 21 10:26:09 2009 @@ -79,9 +79,7 @@ TcpSocket( SocketHandle socketHandle ); /** - * Destruct. - * Releases the socket handle but not - * gracefully shut down the connection. + * Releases the socket handle but not gracefully shut down the connection. */ virtual ~TcpSocket(); @@ -99,19 +97,18 @@ * @param host The host of the server to connect to. * @param port The port of the server to connect to. * @param timeout of socket in microseconds - * @throws IOException Thrown if a failure occurred in the connect. + * @throws SocketException Thrown if a failure occurred in the connect. */ - void connect( const char* host, int port, int timeout) throw( SocketException ); + void connect( const char* host, int port, int timeout ) throw( SocketException ); /** * Connects to the specified destination. Closes this socket if * connected to another destination. * @param host The host of the server to connect to. * @param port The port of the server to connect to. - * @throws IOException Thrown if a failure occurred in the connect. + * @throws SocketException Thrown if a failure occurred in the connect. */ - virtual void connect( const char* host, int port ) throw(SocketException) - { + virtual void connect( const char* host, int port ) throw( SocketException ) { connect(host,port,-1); } @@ -221,7 +218,7 @@ /** * Closes this object and deallocates the appropriate resources. - * @throws CMSException + * @throws Exception */ virtual void close() throw( lang::Exception ); @@ -230,14 +227,14 @@ /** * Gets the Status of the TCP_NODELAY param for this socket as a Bool * @returns true if TCP_NODELAY is enabled - * @throws CMSException + * @throws Exception */ virtual bool getTcpNoDelay() const throw ( lang::Exception ); /** * Sets the Status of the TCP_NODELAY param for this socket as a Bool * @param value - true if TCP_NODELAY is to be enabled - * @throws CMSException + * @throws Exception */ virtual void setTcpNoDelay( bool value ) throw ( lang::Exception ); Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/URISyntaxException.h URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/URISyntaxException.h?rev=777039&r1=777038&r2=777039&view=diff ============================================================================== --- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/URISyntaxException.h (original) +++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/URISyntaxException.h Thu May 21 10:26:09 2009 @@ -29,7 +29,7 @@ std::string reason; std::string input; - std::size_t index; + std::size_t index; public: @@ -44,7 +44,7 @@ /** * Conversion Constructor from some other Exception - * @param An exception that should become this type of Exception + * @param ex An exception that should become this type of Exception */ URISyntaxException( const Exception& ex ) throw() : Exception() { @@ -56,6 +56,7 @@ /** * Copy Constructor + * @param ex An exception that should become this type of Exception */ URISyntaxException( const URISyntaxException& ex ) throw() : Exception() { @@ -69,11 +70,11 @@ * Constructor - Initializes the file name and line number where * this message occurred. Sets the message to report, using an * optional list of arguments to parse into the message - * @param file name where exception occurs - * @param line number where the exception occurred. + * @param file The file name where exception occurs + * @param lineNumber The line number where the exception occurred. * @param cause The exception that was the cause for this one to be thrown. - * @param message to report - * @param list of primitives that are formatted into the message + * @param msg The message to report + * @param ... list of primitives that are formatted into the message */ URISyntaxException( const char* file, const int lineNumber, const std::exception* cause, @@ -100,10 +101,10 @@ * Constructor - Initializes the file name and line number where * this message occurred. Sets the message to report, using an * optional list of arguments to parse into the message - * @param file name where exception occurs - * @param line number where the exception occurred. - * @param message to report - * @param list of primitives that are formatted into the message + * @param file The file name where exception occurs + * @param lineNumber The line number where the exception occurred. + * @param msg The message to report + * @param ... list of primitives that are formatted into the message */ URISyntaxException( const char* file, const int lineNumber, const char* msg DECAF_UNUSED ) throw () @@ -125,11 +126,11 @@ * Constructor - Initializes the file name and line number where * this message occurred. Sets the input string that caused the error * and the reason for the error. - * @param file name where exception occurs - * @param line number where the exception occurred. - * @param input uri string - * @param reason string for the failure. - * @param list of primitives that are formatted into the message + * + * @param file The file name where exception occurs. + * @param lineNumber The line number where the exception occurred. + * @param input The URL that caused the exception. + * @param reason The reason for the failure. */ URISyntaxException( const char* file, const int lineNumber, const std::string& input, @@ -150,16 +151,17 @@ * Constructor - Initializes the file name and line number where * this message occurred. Sets the input string that caused the error * and the reason for the error. - * @param file name where exception occurs - * @param line number where the exception occurred. - * @param input uri string - * @param reason string for the failure. - * @param index in the uri string where the error occured. + * + * @param file The file name where exception occurs + * @param lineNumber The line number where the exception occurred. + * @param input The input URI that caused the exception + * @param reason The reason for the failure. + * @param index The index in the URI string where the error occurred. */ URISyntaxException( const char* file, const int lineNumber, const std::string& input, const std::string& reason, - std::size_t index ) throw () : Exception() { + std::size_t index ) throw () : Exception() { this->reason = reason; this->input = input; @@ -176,14 +178,13 @@ * Clones this exception. This is useful for cases where you need * to preserve the type of the original exception as well as the message. * All subclasses should override. + * + * @return a new Exception instance that is a copy of this Exception object. */ virtual URISyntaxException* clone() const { return new URISyntaxException( *this ); } - /** - * Destructor - */ virtual ~URISyntaxException() throw() {} /** @@ -203,7 +204,7 @@ /** * @returns the index in the input string where the error occured or -1 */ - std::size_t getIndex() const { + std::size_t getIndex() const { return index; } Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/URLDecoder.h URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/URLDecoder.h?rev=777039&r1=777038&r2=777039&view=diff ============================================================================== --- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/URLDecoder.h (original) +++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/URLDecoder.h Thu May 21 10:26:09 2009 @@ -43,10 +43,10 @@ *

* e.g. "A+B+C %24%25" -> "A B C $%" * - * @param s - string The encoded string. + * @param value - string The encoded string. * @return The decoded version as a string. */ - static std::string decode( const std::string& src ); + static std::string decode( const std::string& value ); }; Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/URLEncoder.h URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/URLEncoder.h?rev=777039&r1=777038&r2=777039&view=diff ============================================================================== --- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/URLEncoder.h (original) +++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/URLEncoder.h Thu May 21 10:26:09 2009 @@ -50,10 +50,10 @@ *

* In addition, spaces are substituted by '+' * - * @param s - the string to be converted + * @param value - the string to be converted * @returns the converted string */ - static std::string encode( const std::string& src ); + static std::string encode( const std::string& value ); }; Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/UnknownHostException.h URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/UnknownHostException.h?rev=777039&r1=777038&r2=777039&view=diff ============================================================================== --- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/UnknownHostException.h (original) +++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/UnknownHostException.h Thu May 21 10:26:09 2009 @@ -34,7 +34,7 @@ /** * Conversion Constructor from some other Exception - * @param An exception that should become this type of Exception + * @param ex An exception that should become this type of Exception */ UnknownHostException( const Exception& ex ) throw() : io::IOException() @@ -44,6 +44,7 @@ /** * Copy Constructor + * @param ex An exception that should become this type of Exception */ UnknownHostException( const UnknownHostException& ex ) throw() : io::IOException() @@ -55,11 +56,11 @@ * Constructor - Initializes the file name and line number where * this message occurred. Sets the message to report, using an * optional list of arguments to parse into the message - * @param file name where exception occurs - * @param line number where the exception occurred. + * @param file The file name where exception occurs + * @param lineNumber The line number where the exception occurred. * @param cause The exception that was the cause for this one to be thrown. - * @param message to report - * @param list of primitives that are formatted into the message + * @param msg The message to report + * @param ... list of primitives that are formatted into the message */ UnknownHostException( const char* file, const int lineNumber, const std::exception* cause, @@ -86,10 +87,10 @@ * Constructor - Initializes the file name and line number where * this message occurred. Sets the message to report, using an * optional list of arguments to parse into the message - * @param file name where exception occurs - * @param line number where the exception occurred. - * @param message to report - * @param list of primitives that are formatted into the message + * @param file The file name where exception occurs + * @param lineNumber The line number where the exception occurred. + * @param msg The message to report + * @param ... list of primitives that are formatted into the message */ UnknownHostException( const char* file, const int lineNumber, const char* msg, ... ) throw () @@ -107,14 +108,13 @@ * Clones this exception. This is useful for cases where you need * to preserve the type of the original exception as well as the message. * All subclasses should override. + * + * @return a new Exception instance that is a copy of this Exception object. */ virtual UnknownHostException* clone() const { return new UnknownHostException( *this ); } - /** - * Destructor - */ virtual ~UnknownHostException() throw() {} }; Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/UnknownServiceException.h URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/UnknownServiceException.h?rev=777039&r1=777038&r2=777039&view=diff ============================================================================== --- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/UnknownServiceException.h (original) +++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/UnknownServiceException.h Thu May 21 10:26:09 2009 @@ -34,7 +34,7 @@ /** * Conversion Constructor from some other Exception - * @param An exception that should become this type of Exception + * @param ex An exception that should become this type of Exception */ UnknownServiceException( const Exception& ex ) throw() : io::IOException() @@ -44,6 +44,7 @@ /** * Copy Constructor + * @param ex An exception that should become this type of Exception */ UnknownServiceException( const UnknownServiceException& ex ) throw() : io::IOException() @@ -55,11 +56,11 @@ * Constructor - Initializes the file name and line number where * this message occurred. Sets the message to report, using an * optional list of arguments to parse into the message - * @param file name where exception occurs - * @param line number where the exception occurred. + * @param file The file name where exception occurs + * @param lineNumber The line number where the exception occurred. * @param cause The exception that was the cause for this one to be thrown. - * @param message to report - * @param list of primitives that are formatted into the message + * @param msg The message to report + * @param ... list of primitives that are formatted into the message */ UnknownServiceException( const char* file, const int lineNumber, const std::exception* cause, @@ -86,10 +87,10 @@ * Constructor - Initializes the file name and line number where * this message occurred. Sets the message to report, using an * optional list of arguments to parse into the message - * @param file name where exception occurs - * @param line number where the exception occurred. - * @param message to report - * @param list of primitives that are formatted into the message + * @param file The file name where exception occurs + * @param lineNumber The line number where the exception occurred. + * @param msg The message to report + * @param ... list of primitives that are formatted into the message */ UnknownServiceException( const char* file, const int lineNumber, const char* msg, ... ) throw () @@ -107,14 +108,13 @@ * Clones this exception. This is useful for cases where you need * to preserve the type of the original exception as well as the message. * All subclasses should override. + * + * @return a new Exception instance that is a copy of this Exception object. */ virtual UnknownServiceException* clone() const { return new UnknownServiceException( *this ); } - /** - * Destructor - */ virtual ~UnknownServiceException() throw() {} }; Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/BufferOverflowException.h URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/BufferOverflowException.h?rev=777039&r1=777038&r2=777039&view=diff ============================================================================== --- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/BufferOverflowException.h (original) +++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/BufferOverflowException.h Thu May 21 10:26:09 2009 @@ -54,11 +54,11 @@ * Constructor - Initializes the file name and line number where * this message occurred. Sets the message to report, using an * optional list of arguments to parse into the message - * @param file name where exception occurs - * @param line number where the exception occurred. + * @param file The file name where exception occurs + * @param lineNumber The line number where the exception occurred. * @param cause The exception that was the cause for this one to be thrown. - * @param message to report - * @param list of primitives that are formatted into the message + * @param msg The message to report + * @param ... list of primitives that are formatted into the message */ BufferOverflowException( const char* file, const int lineNumber, const std::exception* cause, @@ -82,9 +82,10 @@ /** * Constructor - * @param file name of the file were the exception occured. - * @param lineNumber line where the exception occured - * @param msg the message that was generated + * @param file The file name where exception occurs + * @param lineNumber The line number where the exception occurred. + * @param msg The message to report + * @param ... list of primitives that are formatted into the message */ BufferOverflowException( const char* file, const int lineNumber, const char* msg, ... ) throw() Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/BufferUnderflowException.h URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/BufferUnderflowException.h?rev=777039&r1=777038&r2=777039&view=diff ============================================================================== --- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/BufferUnderflowException.h (original) +++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/BufferUnderflowException.h Thu May 21 10:26:09 2009 @@ -54,11 +54,11 @@ * Constructor - Initializes the file name and line number where * this message occurred. Sets the message to report, using an * optional list of arguments to parse into the message - * @param file name where exception occurs - * @param line number where the exception occurred. + * @param file The file name where exception occurs + * @param lineNumber The line number where the exception occurred. * @param cause The exception that was the cause for this one to be thrown. - * @param message to report - * @param list of primitives that are formatted into the message + * @param msg The message to report + * @param ... list of primitives that are formatted into the message */ BufferUnderflowException( const char* file, const int lineNumber, const std::exception* cause, @@ -82,9 +82,10 @@ /** * Constructor - * @param file name of the file were the exception occured. - * @param lineNumber line where the exception occured - * @param msg the message that was generated + * @param file The file name where exception occurs + * @param lineNumber The line number where the exception occurred. + * @param msg The message to report + * @param ... list of primitives that are formatted into the message */ BufferUnderflowException( const char* file, const int lineNumber, const char* msg, ... ) throw()