1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.caleigo.core.exception;
20
21 /*** This is the root exception for for the IDataService.
22 *
23 * @author Dennis Zikovic
24 * @version 1.00
25 *
26 *//*
27 *
28 * WHEN WHO WHY & WHAT
29 * ------------------------------------------------------------------------------
30 * 2001-07-20 Dennis Zikovic Creation
31 */
32 public class DataServiceException extends java.lang.RuntimeException
33 {
34
35 private String mDescription;
36
37
38
39 /*** This is the default constructor.
40 */
41 public DataServiceException(String message)
42 {
43 super(message);
44 }
45
46 /*** Use this constructor when the exception is throw as a conversion of
47 * another message.
48 */
49 public DataServiceException(String message, Exception e)
50 {
51 super(message+": "+e.getClass().getName()+" - "+e.getMessage(), e);
52 }
53
54 /*** Use this constructor when the exception is throw as a conversion of
55 * another message and you want to add an extended description.
56 */
57 public DataServiceException(String message, Exception e, String description)
58 {
59 super(message+": "+e.getClass().getName()+" - "+e.getMessage(), e);
60 mDescription = description;
61 }
62
63
64 public String getDescription()
65 {
66 return mDescription;
67 }
68
69 public void setDescription(String description)
70 {
71 mDescription = description;
72 }
73 }