mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
Ticket #362: Cleaned up even more.
This commit is contained in:
@@ -239,7 +239,7 @@ public class ConnectionGroupRESTService {
|
||||
} catch(GuacamoleClientException e) {
|
||||
throw new HTTPException(Status.BAD_REQUEST, e.getMessage() != null ? e.getMessage() : "Invalid Request.");
|
||||
} catch(GuacamoleException e) {
|
||||
logger.error("Unexpected GuacamoleException caught while creating connection.", e);
|
||||
logger.error("Unexpected GuacamoleException caught while creating connection group.", e);
|
||||
throw new HTTPException(Status.INTERNAL_SERVER_ERROR, e.getMessage() != null ? e.getMessage() : "Unexpected server error.");
|
||||
}
|
||||
}
|
||||
@@ -278,7 +278,7 @@ public class ConnectionGroupRESTService {
|
||||
} catch(GuacamoleClientException e) {
|
||||
throw new HTTPException(Status.BAD_REQUEST, e.getMessage() != null ? e.getMessage() : "Invalid Request.");
|
||||
} catch(GuacamoleException e) {
|
||||
logger.error("Unexpected GuacamoleException caught updating connection.", e);
|
||||
logger.error("Unexpected GuacamoleException caught updating connection group.", e);
|
||||
throw new HTTPException(Status.INTERNAL_SERVER_ERROR, e.getMessage() != null ? e.getMessage() : "Unexpected server error.");
|
||||
}
|
||||
}
|
||||
@@ -318,7 +318,7 @@ public class ConnectionGroupRESTService {
|
||||
} catch(GuacamoleClientException e) {
|
||||
throw new HTTPException(Status.BAD_REQUEST, e.getMessage() != null ? e.getMessage() : "Invalid Request.");
|
||||
} catch(GuacamoleException e) {
|
||||
logger.error("Unexpected GuacamoleException caught moving connection.", e);
|
||||
logger.error("Unexpected GuacamoleException caught moving connection group.", e);
|
||||
throw new HTTPException(Status.INTERNAL_SERVER_ERROR, e.getMessage() != null ? e.getMessage() : "Unexpected server error.");
|
||||
}
|
||||
}
|
||||
|
@@ -159,7 +159,7 @@ public class PermissionRESTService {
|
||||
} catch(GuacamoleClientException e) {
|
||||
throw new HTTPException(Status.BAD_REQUEST, e.getMessage() != null ? e.getMessage() : "Invalid Request.");
|
||||
} catch(GuacamoleException e) {
|
||||
logger.error("Unexpected GuacamoleException caught adding permission.", e);
|
||||
logger.error("Unexpected GuacamoleException caught removing permission.", e);
|
||||
throw new HTTPException(Status.INTERNAL_SERVER_ERROR, e.getMessage() != null ? e.getMessage() : "Unexpected server error.");
|
||||
}
|
||||
}
|
||||
|
@@ -90,7 +90,7 @@ public class UserRESTService {
|
||||
} catch(GuacamoleClientException e) {
|
||||
throw new HTTPException(Response.Status.BAD_REQUEST, e.getMessage() != null ? e.getMessage() : "Invalid Request.");
|
||||
} catch(GuacamoleException e) {
|
||||
logger.error("Unexpected GuacamoleException caught while listing permissions.", e);
|
||||
logger.error("Unexpected GuacamoleException caught while listing users.", e);
|
||||
throw new HTTPException(Response.Status.INTERNAL_SERVER_ERROR, e.getMessage() != null ? e.getMessage() : "Unexpected server error.");
|
||||
}
|
||||
}
|
||||
@@ -123,7 +123,7 @@ public class UserRESTService {
|
||||
} catch(GuacamoleClientException e) {
|
||||
throw new HTTPException(Response.Status.BAD_REQUEST, e.getMessage() != null ? e.getMessage() : "Invalid Request.");
|
||||
} catch(GuacamoleException e) {
|
||||
logger.error("Unexpected GuacamoleException caught while listing permissions.", e);
|
||||
logger.error("Unexpected GuacamoleException caught while getting user.", e);
|
||||
throw new HTTPException(Response.Status.INTERNAL_SERVER_ERROR, e.getMessage() != null ? e.getMessage() : "Unexpected server error.");
|
||||
}
|
||||
}
|
||||
@@ -151,7 +151,7 @@ public class UserRESTService {
|
||||
} catch(GuacamoleClientException e) {
|
||||
throw new HTTPException(Response.Status.BAD_REQUEST, e.getMessage() != null ? e.getMessage() : "Invalid Request.");
|
||||
} catch(GuacamoleException e) {
|
||||
logger.error("Unexpected GuacamoleException caught while listing permissions.", e);
|
||||
logger.error("Unexpected GuacamoleException caught while creating user.", e);
|
||||
throw new HTTPException(Response.Status.INTERNAL_SERVER_ERROR, e.getMessage() != null ? e.getMessage() : "Unexpected server error.");
|
||||
}
|
||||
}
|
||||
@@ -191,7 +191,7 @@ public class UserRESTService {
|
||||
} catch(GuacamoleClientException e) {
|
||||
throw new HTTPException(Response.Status.BAD_REQUEST, e.getMessage() != null ? e.getMessage() : "Invalid Request.");
|
||||
} catch(GuacamoleException e) {
|
||||
logger.error("Unexpected GuacamoleException caught while listing permissions.", e);
|
||||
logger.error("Unexpected GuacamoleException caught while updating user.", e);
|
||||
throw new HTTPException(Response.Status.INTERNAL_SERVER_ERROR, e.getMessage() != null ? e.getMessage() : "Unexpected server error.");
|
||||
}
|
||||
}
|
||||
@@ -224,7 +224,7 @@ public class UserRESTService {
|
||||
} catch(GuacamoleClientException e) {
|
||||
throw new HTTPException(Response.Status.BAD_REQUEST, e.getMessage() != null ? e.getMessage() : "Invalid Request.");
|
||||
} catch(GuacamoleException e) {
|
||||
logger.error("Unexpected GuacamoleException caught while listing permissions.", e);
|
||||
logger.error("Unexpected GuacamoleException caught while deleting user.", e);
|
||||
throw new HTTPException(Response.Status.INTERNAL_SERVER_ERROR, e.getMessage() != null ? e.getMessage() : "Unexpected server error.");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user