01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * 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: * $Header:$
18: */
19: package org.apache.beehive.controls.spi.svc;
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 {
26: /**
27: * Constructs a ServiceException object with the specified String as a message.
28: *
29: * @param message The message to use.
30: */
31: public ServiceException(String message) {
32: super (message);
33: }
34:
35: /**
36: * Constructs a ServiceException object using the specified String as a message, and the
37: * specified Throwable as a nested exception.
38: *
39: * @param message The message to use.
40: * @param t The exception to nest within this
41: * exception.
42: */
43: public ServiceException(String message, Throwable t) {
44: super (message + "[" + t.getMessage() + "]", t);
45: }
46:
47: /* Private Constant(s) */
48: private static final long serialVersionUID = 8818197331269164527L;
49: }
|