KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > servicemix > jbi > audit > AuditorException


1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one or more
3  * contributor license agreements. See the NOTICE file distributed with
4  * this work for additional information regarding copyright ownership.
5  * The ASF licenses this file to You under the Apache License, Version 2.0
6  * (the "License"); you may not use this file except in compliance with
7  * the License. You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */

17 package org.apache.servicemix.jbi.audit;
18
19 import javax.jbi.JBIException;
20
21 /**
22  * AuditorException is the exception that can be thrown by the {@link AuditorMBean}
23  * when an error occurs accessing the data store when performing an operation.
24  *
25  * @author Guillaume Nodet (gnt)
26  * @since 2.1
27  * @version $Revision: 426415 $
28  */

29 public class AuditorException extends JBIException {
30
31     /** Serial Version UID */
32     private static final long serialVersionUID = -1259059806617598480L;
33
34     /**
35      * Constructs a new AuditorException with the specified detail message. The
36      * cause is not initialized, and may subsequently be initialized by
37      * a call to {@link #initCause}.
38      *
39      * @param aMessage the detail message. The detail message is saved for
40      * later retrieval by the {@link #getMessage()} method.
41      */

42     public AuditorException(String JavaDoc aMessage) {
43         super(aMessage);
44     }
45
46     /**
47      * Constructs a new AuditorException with the specified detail message and
48      * cause. <p>Note that the detail message associated with
49      * <code>cause</code> is <i>not</i> automatically incorporated in
50      * this exception's detail message.
51      *
52      * @param aMessage the detail message (which is saved for later retrieval
53      * by the {@link #getMessage()} method).
54      * @param aCause the cause (which is saved for later retrieval by the
55      * {@link #getCause()} method). (A <tt>null</tt> value is
56      * permitted, and indicates that the cause is nonexistent or
57      * unknown.)
58      */

59     public AuditorException(String JavaDoc aMessage, Throwable JavaDoc aCause) {
60         super(aMessage, aCause);
61     }
62
63     /**
64      * Constructs a new AuditorException with the specified cause and a detail
65      * message of <tt>(cause==null ? null : cause.toString())</tt> (which
66      * typically contains the class and detail message of <tt>cause</tt>).
67      * This constructor is useful for exceptions that are little more than
68      * wrappers for other throwables (for example, {@link
69      * java.security.PrivilegedActionException}).
70      *
71      * @param aCause the cause (which is saved for later retrieval by the
72      * {@link #getCause()} method). (A <tt>null</tt> value is
73      * permitted, and indicates that the cause is nonexistent or
74      * unknown.)
75      */

76     public AuditorException(Throwable JavaDoc aCause) {
77         super(aCause);
78     }
79 }
80
Popular Tags