diff options
| author | Rupert Smith <rupertlssmith@apache.org> | 2007-05-29 10:19:25 +0000 |
|---|---|---|
| committer | Rupert Smith <rupertlssmith@apache.org> | 2007-05-29 10:19:25 +0000 |
| commit | fa930590d5ea71856c7f7fade234686ddd507aac (patch) | |
| tree | 60e790948caa1c526b8ff04de13b9acbc0e51d4b /java/client | |
| parent | 61efc2ec574caa88697a38c55b9dcc90ef7f28c4 (diff) | |
| download | qpid-python-fa930590d5ea71856c7f7fade234686ddd507aac.tar.gz | |
Added to the Javadoc
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@542476 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/client')
| -rw-r--r-- | java/client/src/main/java/org/apache/qpid/client/failover/FailoverException.java | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/java/client/src/main/java/org/apache/qpid/client/failover/FailoverException.java b/java/client/src/main/java/org/apache/qpid/client/failover/FailoverException.java index 49377fdc19..95899d533a 100644 --- a/java/client/src/main/java/org/apache/qpid/client/failover/FailoverException.java +++ b/java/client/src/main/java/org/apache/qpid/client/failover/FailoverException.java @@ -7,9 +7,9 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -21,8 +21,12 @@ package org.apache.qpid.client.failover; /** - * This exception is thrown when failover is taking place and we need to let other - * parts of the client know about this. + * This exception is thrown when failover is taking place and otherparts of the client need to know about this. + * + * @todo This exception is created and passed as an argument to a method, rather than thrown. The exception is being + * used to represent a signal, passed out to other threads. Use of exceptions as arguments rather than as + * exceptions is extremly confusing. Eliminate. Use a Condition or set a flag and check it instead. Also + * FailoverException is Runtime but handled and should only use Runtimes for non-handleable conditions. */ public class FailoverException extends RuntimeException { |
