1 package org.sourceforge.jemm.comm.shared;
2
3 /**
4 * A class representing an error returned by the server.
5 *
6 * @author Rory Graves
7 *
8 */
9 public class ErrorMessage extends Message {
10 private static final long serialVersionUID = 1L;
11
12 /** The declared error message. */
13 private final String errorMsg;
14
15 /**
16 * Creates an ErrorMessage with the given message string.
17 *
18 * @param msg The given error message.
19 */
20 public ErrorMessage(String msg) {
21 super(null);
22 this.errorMsg = msg;
23 }
24
25 public String getUserErrorMessage() {
26 return errorMsg;
27 }
28 }