1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 package org.talika.tarsis.service;
24
25 import org.talika.tarsis.error.SystemException;
26
27 /**
28 * Thrown by services to indicate a service error.
29 *
30 * @author Jose M. Palomar
31 * @version $Revision: 122 $
32 */
33 public class ServiceException extends SystemException {
34
35
36 /**
37 * Constructs a new <code>ServiceException</code> with given message and
38 * cause.
39 *
40 * @param msg String text of the exception message.
41 */
42 public ServiceException(String msg) {
43 super(msg);
44 }
45
46 /**
47 * Constructs a new <code>ServiceException</code> with given message and
48 * cause.
49 *
50 * @param msg String text of the exception message.
51 * @param rootCause Throwable the <code>Throwable</code> exception that caused
52 * this exception.
53 */
54 public ServiceException(String msg, Throwable rootCause) {
55 super(msg, rootCause);
56 }
57
58 }