001/* 002 * Copyright 2002-2016 the original author or authors. 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * https://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016 017package org.springframework.jms; 018 019/** 020 * JmsException to be thrown when no other matching subclass found. 021 * 022 * @author Juergen Hoeller 023 * @since 1.1 024 */ 025@SuppressWarnings("serial") 026public class UncategorizedJmsException extends JmsException { 027 028 /** 029 * Constructor that takes a message. 030 * @param msg the detail message 031 */ 032 public UncategorizedJmsException(String msg) { 033 super(msg); 034 } 035 036 /** 037 * Constructor that takes a message and a root cause. 038 * @param msg the detail message 039 * @param cause the cause of the exception. This argument is generally 040 * expected to be a proper subclass of {@link javax.jms.JMSException}, 041 * but can also be a JNDI NamingException or the like. 042 */ 043 public UncategorizedJmsException(String msg, Throwable cause) { 044 super(msg, cause); 045 } 046 047 /** 048 * Constructor that takes a root cause only. 049 * @param cause the cause of the exception. This argument is generally 050 * expected to be a proper subclass of {@link javax.jms.JMSException}, 051 * but can also be a JNDI NamingException or the like. 052 */ 053 public UncategorizedJmsException(Throwable cause) { 054 super("Uncategorized exception occurred during JMS processing", cause); 055 } 056 057}