KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > beehive > controls > spi > svc > ServiceException


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

20
21 /**
22  * The ServiceException class declares an checked exception that is thrown by the Service API
23  * runtime under certain failure conditions.
24  */

25 public class ServiceException extends Exception JavaDoc
26 {
27     /**
28      * Constructs a ServiceException object with the specified String as a message.
29      *
30      * @param message The message to use.
31      */

32     public ServiceException(String JavaDoc message)
33     {
34         super(message);
35     }
36
37     /**
38      * Constructs a ServiceException object using the specified String as a message, and the
39      * specified Throwable as a nested exception.
40      *
41      * @param message The message to use.
42      * @param t The exception to nest within this
43      * exception.
44      */

45     public ServiceException(String JavaDoc message, Throwable JavaDoc t)
46     {
47         super(message + "[" + t.getMessage() + "]", t);
48     }
49
50     /* Private Constant(s) */
51     private static final long serialVersionUID = 8818197331269164527L;
52 }
53
Popular Tags