From 50b314a51a2c787fcd412a84cb8464f72e3868b4 Mon Sep 17 00:00:00 2001 From: Robert Godfrey Date: Fri, 14 Feb 2014 10:52:47 +0000 Subject: QPID-5551 : Remove uses of AMQException, add ServerScopedRuntimeException and ConnectionScopedRuntimeException git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1568235 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/qpid/AMQStoreException.java | 46 ---------------------- .../org/apache/qpid/AMQUnknownExchangeType.java | 43 -------------------- 2 files changed, 89 deletions(-) delete mode 100644 qpid/java/common/src/main/java/org/apache/qpid/AMQStoreException.java delete mode 100644 qpid/java/common/src/main/java/org/apache/qpid/AMQUnknownExchangeType.java (limited to 'qpid/java/common/src/main') diff --git a/qpid/java/common/src/main/java/org/apache/qpid/AMQStoreException.java b/qpid/java/common/src/main/java/org/apache/qpid/AMQStoreException.java deleted file mode 100644 index 45aa36a20b..0000000000 --- a/qpid/java/common/src/main/java/org/apache/qpid/AMQStoreException.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * 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 - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - * - */ -package org.apache.qpid; - -/** - * StoreException is a specific type of internal error relating to errors in the message store, such as {@link java.sql.SQLException}. - */ -public class AMQStoreException extends AMQInternalException -{ - /** serialVersionUID */ - private static final long serialVersionUID = 2859681947490637496L; - - /** - * Creates an exception with an optional message and optional underlying cause. - * - * @param msg The exception message. May be null if not to be set. - * @param cause The underlying cause of the exception. May be null if not to be set. - */ - public AMQStoreException(String msg, Throwable cause) - { - super(((msg == null) ? "Store error" : msg), cause); - } - - public AMQStoreException(String msg) - { - this(msg, null); - } -} diff --git a/qpid/java/common/src/main/java/org/apache/qpid/AMQUnknownExchangeType.java b/qpid/java/common/src/main/java/org/apache/qpid/AMQUnknownExchangeType.java deleted file mode 100644 index 0eefc03016..0000000000 --- a/qpid/java/common/src/main/java/org/apache/qpid/AMQUnknownExchangeType.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * 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 - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - * - */ - -package org.apache.qpid; - -/** - * AMQUnknownExchangeType represents coding error where unknown exchange type requested from exchange factory. - * - *

- *
CRC Card
Responsibilities Collaborations - *
Represents unknown exchange type request. - *
- * - * @todo Not an AMQP exception as no status code. - * - * @todo Represent coding error, where unknown exchange type is requested by passing a string parameter. Use a type safe - * enum for the exchange type, or replace with IllegalArgumentException. Should be runtime. - */ -public class AMQUnknownExchangeType extends AMQException -{ - public AMQUnknownExchangeType(String message, Throwable cause) - { - super(null, message, cause); - } -} -- cgit v1.2.1