From a86b6c2754934dc4269ccb9d036a92a5d1f1d7d8 Mon Sep 17 00:00:00 2001 From: Mathis Chenuet Date: Wed, 4 Mar 2015 18:59:16 +0000 Subject: [PATCH] no need to specify the child class, use the parent class for everything --- src/com/sheepit/client/Server.java | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/com/sheepit/client/Server.java b/src/com/sheepit/client/Server.java index 6ffebd6..33a1dbe 100644 --- a/src/com/sheepit/client/Server.java +++ b/src/com/sheepit/client/Server.java @@ -262,7 +262,7 @@ public class Server extends Thread implements HostnameVerifier, X509TrustManager return Error.Type.OK; } - public Job requestJob() throws FermeException, FermeExceptionNoRightToRender, FermeExceptionNoSession, FermeExceptionSessionDisabled { + public Job requestJob() throws FermeException { this.log.debug("Server::requestJob"); String url_contents = ""; @@ -421,17 +421,8 @@ public class Server extends Thread implements HostnameVerifier, X509TrustManager System.out.println(""); } } - catch (FermeExceptionNoRightToRender e) { - throw e; - } - catch (FermeExceptionNoSession e) { - throw e; - } - catch (FermeExceptionSessionDisabled e) { - throw e; - } catch (FermeException e) { - throw new FermeException(e.getMessage()); + throw e; } catch (Exception e) { throw new FermeException("error requestJob: unknow exception " + e);