Revision 675
Added by berkley about 23 years ago
AuthMcat.java | ||
---|---|---|
74 | 74 |
String name = "//" + srbHost + "/SrbJavaGlue"; |
75 | 75 |
srbJG = (SrbJavaGlueInterface)Naming.lookup(name); |
76 | 76 |
} catch (Exception e) { |
77 |
System.err.println("AuthMcat static: " + e.getMessage()); |
|
77 |
System.err.println("error in AuthMcat static: " + e.getMessage());
|
|
78 | 78 |
} |
79 | 79 |
} |
80 | 80 |
|
... | ... | |
100 | 100 |
} |
101 | 101 |
|
102 | 102 |
} catch ( RemoteException re) { |
103 |
throw new ConnectException(re.getMessage()); |
|
103 |
throw new ConnectException("Error in AuthMcat.authenticate: " + |
|
104 |
re.getMessage()); |
|
104 | 105 |
} |
105 | 106 |
|
106 | 107 |
return false; |
... | ... | |
125 | 126 |
} |
126 | 127 |
|
127 | 128 |
} catch ( RemoteException re) { |
128 |
throw new ConnectException(re.getMessage()); |
|
129 |
throw new ConnectException("Error in AuthMcat.getUsers " + |
|
130 |
re.getMessage()); |
|
129 | 131 |
} |
130 | 132 |
|
131 | 133 |
return null; |
... | ... | |
149 | 151 |
} |
150 | 152 |
|
151 | 153 |
} catch ( RemoteException re) { |
152 |
throw new ConnectException(re.getMessage()); |
|
154 |
throw new ConnectException("Error in AuthMcat.getUsers: " + |
|
155 |
re.getMessage()); |
|
153 | 156 |
} |
154 | 157 |
|
155 | 158 |
return null; |
... | ... | |
173 | 176 |
} |
174 | 177 |
|
175 | 178 |
} catch ( RemoteException re) { |
176 |
throw new ConnectException(re.getMessage()); |
|
179 |
throw new ConnectException("Error in authMcat.getGroups: " + |
|
180 |
re.getMessage()); |
|
177 | 181 |
} |
178 | 182 |
|
179 | 183 |
return null; |
... | ... | |
197 | 201 |
} |
198 | 202 |
|
199 | 203 |
} catch ( RemoteException re) { |
200 |
throw new ConnectException(re.getMessage()); |
|
204 |
throw new ConnectException("Error in AuthMcat.getGroupds: " + |
|
205 |
re.getMessage()); |
|
201 | 206 |
} |
202 | 207 |
|
203 | 208 |
return null; |
Also available in: Unified diff
added precise location information (class.method) to each catch statement so that errors are more easily traced.