List of usage examples for java.lang Error initCause
public synchronized Throwable initCause(Throwable cause)
From source file:LZFInputStream.java
public static byte[] newBytes(int len) { try {/* w w w . j a v a 2 s. co m*/ if (len == 0) { return EMPTY_BYTES; } return new byte[len]; } catch (OutOfMemoryError e) { Error e2 = new OutOfMemoryError("Requested memory: " + len); e2.initCause(e); throw e2; } }
From source file:org.taverna.server.master.TavernaServerImpl.java
@Override @CallCounted/*from w w w . j a v a2 s . com*/ public Credential[] getRunCredentials(String runName) throws UnknownRunException, NotOwnerException { try { return getRunSecurityContext(runName, false).getCredentials(); } catch (BadStateChangeException e) { Error e2 = new Error("impossible"); e2.initCause(e); throw e2; } }
From source file:org.taverna.server.master.TavernaServerImpl.java
@Override @CallCounted/*from www . j a va 2 s . c o m*/ public Trust[] getRunCertificates(String runName) throws UnknownRunException, NotOwnerException { try { return getRunSecurityContext(runName, false).getTrusted(); } catch (BadStateChangeException e) { Error e2 = new Error("impossible"); e2.initCause(e); throw e2; } }
From source file:org.taverna.server.master.TavernaServer.java
@Override @CallCounted/*from w w w . j av a2 s .co m*/ @PerfLogged @RolesAllowed(USER) public Credential[] getRunCredentials(String runName) throws UnknownRunException, NotOwnerException { try { return getRunSecurityContext(runName, false).getCredentials(); } catch (BadStateChangeException e) { Error e2 = new Error("impossible"); e2.initCause(e); throw e2; } }
From source file:org.taverna.server.master.TavernaServer.java
@Override @CallCounted/*from w ww . j a va2s. c o m*/ @PerfLogged @RolesAllowed(USER) public Trust[] getRunCertificates(String runName) throws UnknownRunException, NotOwnerException { try { return getRunSecurityContext(runName, false).getTrusted(); } catch (BadStateChangeException e) { Error e2 = new Error("impossible"); e2.initCause(e); throw e2; } }