01: /*
02: * Copyright Aduna (http://www.aduna-software.com/) (c) 1997-2006.
03: *
04: * Licensed under the Aduna BSD-style license.
05: */
06: package org.openrdf.rio;
07:
08: import org.openrdf.OpenRDFException;
09:
10: /**
11: * An exception that can be thrown by an RDFHandler when it encounters an
12: * unrecoverable error. If an exception is associated with the error then this
13: * exception can be wrapped in an RDFHandlerException and can later be retrieved
14: * from it when the RDFHandlerException is catched using the
15: * <tt>getCause()</tt>.
16: */
17: public class RDFHandlerException extends OpenRDFException {
18:
19: private static final long serialVersionUID = -1931215293637533642L;
20:
21: /**
22: * Creates a new RDFHandlerException.
23: *
24: * @param msg An error message.
25: */
26: public RDFHandlerException(String msg) {
27: super (msg);
28: }
29:
30: /**
31: * Creates a new RDFHandlerException.
32: *
33: * @param cause The cause of the exception.
34: */
35: public RDFHandlerException(Throwable cause) {
36: super (cause);
37: }
38:
39: /**
40: * Creates a new RDFHandlerException wrapping another exception.
41: *
42: * @param msg An error message.
43: * @param cause The cause of the exception.
44: */
45: public RDFHandlerException(String msg, Throwable cause) {
46: super(msg, cause);
47: }
48: }
|