1 | /* |
2 | * Copyright 2007 brunella ltd |
3 | * |
4 | * Licensed under the LGPL Version 3 (the "License"); |
5 | * you may not use this file except in compliance with the License. |
6 | * |
7 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
8 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
9 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
10 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE |
11 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
12 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
13 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
14 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
15 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
16 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF |
17 | * THE POSSIBILITY OF SUCH DAMAGE. |
18 | */ |
19 | package sf.qof.session; |
20 | |
21 | /** |
22 | * The SystemException is thrown by the transaction and session manager to |
23 | * indicate that it has encountered an unexpected error condition that prevents |
24 | * future transaction services from proceeding. |
25 | * |
26 | */ |
27 | public class SystemException extends Exception { |
28 | |
29 | private static final long serialVersionUID = -6158015852271864712L; |
30 | |
31 | /** |
32 | * Constructs a SystemException object. |
33 | */ |
34 | public SystemException() { |
35 | super(); |
36 | } |
37 | |
38 | /** |
39 | * Constructs a SystemException object. |
40 | * |
41 | * @param cause a Throwable object |
42 | */ |
43 | public SystemException(Throwable cause) { |
44 | super(cause); |
45 | } |
46 | |
47 | /** |
48 | * Constructs a SystemException object. |
49 | * |
50 | * @param message the error message |
51 | */ |
52 | public SystemException(String message) { |
53 | super(message); |
54 | } |
55 | |
56 | /** |
57 | * Constructs a SystemException object. |
58 | * |
59 | * @param message the error message |
60 | * @param cause a Throwable object |
61 | */ |
62 | public SystemException(String message, Throwable cause) { |
63 | super(message, cause); |
64 | } |
65 | } |