1 /*
2 * Copyright (c) 2008, The JUNG Authors
3 *
4 * All rights reserved.
5 *
6 * This software is open-source under the BSD license; see either
7 * "license.txt" or
8 * https://github.com/jrtom/jung/blob/master/LICENSE for a description.
9 */
10
11 package edu.uci.ics.jung.io;
12
13 /**
14 * Exception thrown when IO errors occur when reading/writing graphs.
15 *
16 * @author Nathan Mittler - nathan.mittler@gmail.com
17 */
18 public class GraphIOException extends Exception {
19
20 private static final long serialVersionUID = 3773882099782535606L;
21
22 /**
23 * Creates a new instance with no specified message or cause.
24 */
25 public GraphIOException() {
26 super();
27 }
28
29 /**
30 * Creates a new instance with the specified message and cause.
31 * @param message a description of the exception-triggering event
32 * @param cause the exception which triggered this one
33 */
34 public GraphIOException(String message, Throwable cause) {
35 super(message, cause);
36 }
37
38 /**
39 * Creates a new instance with the specified message and no
40 * specified cause.
41 * @param message a description of the exception-triggering event
42 */
43 public GraphIOException(String message) {
44 super(message);
45 }
46
47 /**
48 * Creats a new instance with the specified cause and no specified message.
49 * @param cause the exception which triggered this one
50 */
51 public GraphIOException(Throwable cause) {
52 super(cause);
53 }
54
55 }