summaryrefslogtreecommitdiff
path: root/src/main/java/com/c2kernel/process/Gateway.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/c2kernel/process/Gateway.java')
-rw-r--r--src/main/java/com/c2kernel/process/Gateway.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/c2kernel/process/Gateway.java b/src/main/java/com/c2kernel/process/Gateway.java
index 2bbe638..b393077 100644
--- a/src/main/java/com/c2kernel/process/Gateway.java
+++ b/src/main/java/com/c2kernel/process/Gateway.java
@@ -256,7 +256,7 @@ public class Gateway
* @throws InvalidDataException
*/
static public AgentProxy connect(String agentName, String agentPassword)
- throws InvalidDataException
+ throws InvalidDataException, ObjectNotFoundException
{
LDAPProperties ldapProps = new LDAPProperties();
@@ -289,7 +289,7 @@ public class Gateway
} catch (ClusterStorageException e) {
throw new InvalidDataException(Language.translate("Error initialising storage")+Language.translate(". See log."), "");
} catch (ObjectNotFoundException e) {
- throw new InvalidDataException(Language.translate("Invalid username/password"), "");
+ throw new ObjectNotFoundException(Language.translate("Invalid username/password"), "");
} catch (Exception e) {
throw new InvalidDataException(Language.translate("Could not log in")+": "+Language.translate(e.getMessage()), "");
}