1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.gwe.drivers.netAccess;
18
19
20
21
22
23 public class ConnectorException extends Exception {
24
25 private String command = null;
26
27 public ConnectorException(String msg, Exception nestee) {
28 super(msg, nestee);
29 }
30
31 public ConnectorException(String msg) {
32 super(msg);
33 }
34
35 public String getCommand() {
36 return command;
37 }
38
39 public void setCommand(String command) {
40 this.command = command;
41 }
42
43 public String getMessage() {
44 String prefix = (command == null) ? "" : "Command '" + command + "' failed to execute with the following exception:\n";
45 return prefix + super.getMessage();
46 }
47 }