1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package org.apache.geronimo.gshell.whisper.message;
21
22 /**
23 * Thrown to indicate a message operation failed.
24 *
25 * @version $Rev: 579828 $ $Date: 2007-09-26 15:15:42 -0700 (Wed, 26 Sep 2007) $
26 */
27 public class MessageException
28 extends Exception
29 {
30 private static final long serialVersionUID = 1;
31
32 public MessageException(final String msg, final Throwable cause) {
33 super(msg, cause);
34 }
35
36 public MessageException(final String msg) {
37 super(msg);
38 }
39
40 public MessageException(final Throwable cause) {
41 super(cause);
42 }
43
44 public MessageException() {
45 super();
46 }
47
48 public MessageException(final Message.ID id) {
49 this(String.valueOf(id));
50 }
51
52 public MessageException(final Message msg) {
53 this(msg.getId());
54 }
55 }