no need to specify the child class, use the parent class for everything

This commit is contained in:
Mathis Chenuet
2015-03-04 18:59:16 +00:00
committed by Laurent Clouet
parent c3064de5e9
commit a86b6c2754

View File

@@ -262,7 +262,7 @@ public class Server extends Thread implements HostnameVerifier, X509TrustManager
return Error.Type.OK; return Error.Type.OK;
} }
public Job requestJob() throws FermeException, FermeExceptionNoRightToRender, FermeExceptionNoSession, FermeExceptionSessionDisabled { public Job requestJob() throws FermeException {
this.log.debug("Server::requestJob"); this.log.debug("Server::requestJob");
String url_contents = ""; String url_contents = "";
@@ -421,17 +421,8 @@ public class Server extends Thread implements HostnameVerifier, X509TrustManager
System.out.println(""); System.out.println("");
} }
} }
catch (FermeExceptionNoRightToRender e) {
throw e;
}
catch (FermeExceptionNoSession e) {
throw e;
}
catch (FermeExceptionSessionDisabled e) {
throw e;
}
catch (FermeException e) { catch (FermeException e) {
throw new FermeException(e.getMessage()); throw e;
} }
catch (Exception e) { catch (Exception e) {
throw new FermeException("error requestJob: unknow exception " + e); throw new FermeException("error requestJob: unknow exception " + e);