001 /*
002 * Licensed to the Apache Software Foundation (ASF) under one or more
003 * contributor license agreements. See the NOTICE file distributed with
004 * this work for additional information regarding copyright ownership.
005 * The ASF licenses this file to You under the Apache License, Version 2.0
006 * (the "License"); you may not use this file except in compliance with
007 * the License. You may obtain a copy of the License at
008 *
009 * http://www.apache.org/licenses/LICENSE-2.0
010 *
011 * Unless required by applicable law or agreed to in writing, software
012 * distributed under the License is distributed on an "AS IS" BASIS,
013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014 * See the License for the specific language governing permissions and
015 * limitations under the License.
016 */
017 package org.apache.servicemix.jbi.audit;
018
019 import javax.jbi.JBIException;
020
021 /**
022 * AuditorException is the exception that can be thrown by the {@link AuditorMBean}
023 * when an error occurs accessing the data store when performing an operation.
024 *
025 * @author Guillaume Nodet (gnt)
026 * @since 2.1
027 * @version $Revision: 7323 $
028 */
029 public class AuditorException extends JBIException {
030
031 /** Serial Version UID */
032 private static final long serialVersionUID = -1259059806617598480L;
033
034 /**
035 * Constructs a new AuditorException with the specified detail message. The
036 * cause is not initialized, and may subsequently be initialized by
037 * a call to {@link #initCause}.
038 *
039 * @param aMessage the detail message. The detail message is saved for
040 * later retrieval by the {@link #getMessage()} method.
041 */
042 public AuditorException(String aMessage) {
043 super(aMessage);
044 }
045
046 /**
047 * Constructs a new AuditorException with the specified detail message and
048 * cause. <p>Note that the detail message associated with
049 * <code>cause</code> is <i>not</i> automatically incorporated in
050 * this exception's detail message.
051 *
052 * @param aMessage the detail message (which is saved for later retrieval
053 * by the {@link #getMessage()} method).
054 * @param aCause the cause (which is saved for later retrieval by the
055 * {@link #getCause()} method). (A <tt>null</tt> value is
056 * permitted, and indicates that the cause is nonexistent or
057 * unknown.)
058 */
059 public AuditorException(String aMessage, Throwable aCause) {
060 super(aMessage, aCause);
061 }
062
063 /**
064 * Constructs a new AuditorException with the specified cause and a detail
065 * message of <tt>(cause==null ? null : cause.toString())</tt> (which
066 * typically contains the class and detail message of <tt>cause</tt>).
067 * This constructor is useful for exceptions that are little more than
068 * wrappers for other throwables (for example, {@link
069 * java.security.PrivilegedActionException}).
070 *
071 * @param aCause the cause (which is saved for later retrieval by the
072 * {@link #getCause()} method). (A <tt>null</tt> value is
073 * permitted, and indicates that the cause is nonexistent or
074 * unknown.)
075 */
076 public AuditorException(Throwable aCause) {
077 super(aCause);
078 }
079 }