Examples of ProtoNetworkError


Examples of org.openbel.framework.common.protonetwork.model.ProtoNetworkError

            ProtoNetwork network = new ProtoNetwork();
            network.readExternal(ois);
            return network;
        } catch (FileNotFoundException e) {
            final String msg = "Cannot find binary proto-network for path";
            throw new ProtoNetworkError(pn.getAbsolutePath(), msg, e);
        } catch (IOException e) {
            final String msg = "Cannot read binary proto-network for path";
            throw new ProtoNetworkError(pn.getAbsolutePath(), msg, e);
        } catch (ClassNotFoundException e) {
            final String msg = "Cannot read proto-network for path";
            throw new ProtoNetworkError(pn.getAbsolutePath(), msg, e);
        } finally {
            // clean up IO resources
            IOUtils.closeQuietly(ois);
        }
    }
View Full Code Here

Examples of org.openbel.framework.common.protonetwork.model.ProtoNetworkError

            return new BinaryProtoNetworkDescriptor(file);
        } catch (IOException e) {
            final String name = file.getAbsolutePath();
            final String msg =
                    "Cannot create temporary binary file for proto-network";
            throw new ProtoNetworkError(name, msg, e);
        } finally {
            // clean up IO resources
            IOUtils.closeQuietly(oos);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.