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.query;
07:
08: import org.openrdf.OpenRDFException;
09:
10: /**
11: * An exception that can be thrown by an TupleQueryResultHandler when it encounters an
12: * unrecoverable error. If an exception is associated with the error then this
13: * exception can be wrapped in a TupleHandlerException and can later be
14: * retrieved from it when the TupleHandlerException is caught using the
15: * <tt>getCause()</tt>.
16: */
17: public class TupleQueryResultHandlerException extends OpenRDFException {
18:
19: private static final long serialVersionUID = 8530574857852836665L;
20:
21: /**
22: * Creates a new TupleQueryResultHandlerException.
23: *
24: * @param msg An error message.
25: */
26: public TupleQueryResultHandlerException(String msg) {
27: super (msg);
28: }
29:
30: /**
31: * Creates a new TupleQueryResultHandlerException wrapping another exception.
32: *
33: * @param cause The cause of the exception.
34: */
35: public TupleQueryResultHandlerException(Throwable cause) {
36: super (cause);
37: }
38:
39: /**
40: * Creates a new TupleQueryResultHandlerException wrapping another exception.
41: *
42: * @param msg An error message.
43: * @param cause The cause of the exception.
44: */
45: public TupleQueryResultHandlerException(String msg, Throwable cause) {
46: super(msg, cause);
47: }
48: }
|