KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > blandware > atleap > service > exception > ServiceException


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

16 package com.blandware.atleap.service.exception;
17
18
19 /**
20  * <p>A general ServiceException that can be thrown to indicate an error
21  * in business logic.
22  * </p>
23  * <p><a HREF="ServiceException.java.htm"><i>View Source</i></a>
24  * </p>
25  *
26  * @author Matt Raible <a HREF="mailto:matt@raibledesigns.com">&lt;matt@raibledesigns.com&gt;</a>
27  */

28 public class ServiceException extends Exception JavaDoc {
29     //~ Constructors ===========================================================
30

31     /**
32      * Constructor for ServiceException.
33      */

34     public ServiceException() {
35         super();
36     }
37
38     /**
39      * Constructor for ServiceException.
40      *
41      * @param message error message
42      */

43     public ServiceException(String JavaDoc message) {
44         super(message);
45     }
46
47     /**
48      * Constructor for ServiceException.
49      *
50      * @param message error message
51      * @param cause wrapped Throwable
52      */

53     public ServiceException(String JavaDoc message, Throwable JavaDoc cause) {
54         super(message, cause);
55     }
56
57     /**
58      * Constructor for ServiceException.
59      *
60      * @param cause wrapped Throwable
61      */

62     public ServiceException(Throwable JavaDoc cause) {
63         super(cause);
64     }
65 }
66
Popular Tags