1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 package com.sun.star.report;
24 
25 public class ReportExecutionException extends Exception
26 {
27 
28     /**
29      * Constructs a new exception with <code>null</code> as its detail message. The cause is
30      * not initialized, and may subsequently be initialized by a call to {@link
31      * #initCause}.
32      */
ReportExecutionException()33     public ReportExecutionException()
34     {
35     }
36 
37     /**
38      * Constructs a new exception with the specified cause and a detail message of
39      * <tt>(cause==null ? null : cause.toString())</tt> (which typically contains the class
40      * and detail message of <tt>cause</tt>). This constructor is useful for exceptions that
41      * are little more than wrappers for other throwables (for example, {@link
42      * java.security.PrivilegedActionException}).
43      *
44      * @param cause the cause (which is saved for later retrieval by the {@link #getCause()}
45      *              method).  (A <tt>null</tt> value is permitted, and indicates that the
46      *              cause is nonexistent or unknown.)
47      * @since 1.4
48      */
ReportExecutionException(Throwable cause)49     public ReportExecutionException(Throwable cause)
50     {
51         super(cause);
52     }
53 
54     /**
55      * Constructs a new exception with the specified detail message.  The cause is not
56      * initialized, and may subsequently be initialized by a call to {@link #initCause}.
57      *
58      * @param message the detail message. The detail message is saved for later retrieval by
59      *                the {@link #getMessage()} method.
60      */
ReportExecutionException(String message)61     public ReportExecutionException(String message)
62     {
63         super(message);
64     }
65 
66     /**
67      * Constructs a new exception with the specified detail message and cause.  <p>Note that
68      * the detail message associated with <code>cause</code> is <i>not</i> automatically
69      * incorporated in this exception's detail message.
70      *
71      * @param message the detail message (which is saved for later retrieval by the {@link
72      *                #getMessage()} method).
73      * @param cause   the cause (which is saved for later retrieval by the {@link
74      *                #getCause()} method).  (A <tt>null</tt> value is permitted, and
75      *                indicates that the cause is nonexistent or unknown.)
76      * @since 1.4
77      */
ReportExecutionException(String message, Throwable cause)78     public ReportExecutionException(String message, Throwable cause)
79     {
80         super(message, cause);
81     }
82 }
83